3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-03 08:55:15 +00:00

Pyosys Wheels

* Created `setup.py`: Python package manifest to build `pyosys` wheels with a custom extension to build and include `libyosys.so` using Make
* `.gitignore`: Added byproducts of the Python wheel build process
* `Makefile`: Added `-undefined dynamic_lookup` to `libyosys.so` so missing symbols can be resolved by importing into a Python interpreter
* `kernel/yosys.cc`: Gated `PyImport_AppendInittab` with `!Py_IsInitialized`; as of Python 3.12, the interpreter is already initialized and `PyImport_AppendInittab` would cause an exception to be raised
* Created `wheels.yml`: CI workflow for building wheels for CPython on:
  * Linux (glibc, musl) and Darwin
  * x86-64 and arm64
This commit is contained in:
Mohamed Gaber 2024-08-12 14:21:05 +03:00
parent 1f517d6c7d
commit 407343a7a1
No known key found for this signature in database
5 changed files with 224 additions and 6 deletions

7
.gitignore vendored
View file

@ -45,4 +45,9 @@ __pycache__
/tests/unit/bintest/
/tests/unit/objtest/
/tests/ystests
/result
/result
/dist
/*.egg-info
/build
/venv
/boost