mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-06 17:11:01 +00:00
This commit reimplements the (no longer recommended) setuptools based build system using a standards-based in-tree PEP517 build backend. The implementation is partially based on https://codeberg.org/ziglang/zig-pypi/src/branch/main/make_wheels.py which is licensed under BSD-0-clause. It also adds a new option `YOSYS_BUILD_PYTHON_ONLY` that is available only if the binary or the library aren't going to be installed, which turns off these targets entirely, as well as some dependent ones (e.g. tests). Co-authored-by: Mohamed Gaber <me@donn.website>
10 lines
312 B
Bash
10 lines
312 B
Bash
set -e
|
|
set -x
|
|
|
|
# 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
|