* Move Python environment values into `utils/environment.python.sh`
* Source the `utils/environment.python.sh` before running Python
scripts.
* Add `DeprecationWarning` suppression for `distutils`
Now the output of `make test-py` returns `30 passed in N.NNs` instead of
the previous `30 passed, 1 warnings in N.NNs`
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This change affects the extra-db target, by adding also the generation
of other part-dependent files, such as tilegrid, tileconn, and others.
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Creates the .db files via make rather than via sourcing settings.sh
allowing pip fuzzers to interact correctly with `make clean`.
Fixes#604.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This fixes the problem that when sourcing the vivado settings file the
library search path is modified resulting in non-vivado binaries not working
due to being dynamically linked against the vivado libraries instead of the
system ones.
Signed-off-by: Felix Held <felix-github@felixheld.de>
* Use `yapf` from environment if it exists.
* Better way to generate exclude.
* Make TCL formatting work.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
bitread now requires a part YAML file as part of the rewrite to use
libprjxray. Instead of changing every invocation directly, just add the
flag to the existing environment variable as it is needed for all
invocations.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Since some of the tools need to be found by make and other environments,
build the paths when database/<database>/settings.sh is sourced and
export them into the shell environment.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
Building with CMake makes it a lot easier to bring in other libraries
such as gflags and abseil.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
utils/environment.sh determines its absolute path and then creates
environment variables to each of the prjxray tools. This allows moving
the tools around in the code base without touching every script.
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>