mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-08 17:01:57 +00:00
For consistency. Also trying a new thing: only rebuilding objects that use the pybind11 library. The idea is these are the only objects that include the Python/pybind headers and thus the only ones that depend on the Python ABI in any capacity, so other objects can be reused across wheel builds. This has the potential to cut down build times.
13 lines
377 B
Bash
13 lines
377 B
Bash
set -e
|
|
set -x
|
|
|
|
# Don't use Python objects from previous compiles
|
|
make clean-py
|
|
|
|
# DEBUG: show python3 and python3-config outputs
|
|
if [ "$(uname)" != "Linux" ]; then
|
|
# https://github.com/pypa/cibuildwheel/issues/2021
|
|
ln -s $(dirname $(readlink -f $(which python3)))/python3-config $(dirname $(which python3))/python3-config
|
|
fi
|
|
python3 --version
|
|
python3-config --includes
|