Replies: 2 comments 2 replies
-
I would recommend using scikit-build-core or other dedicated backend. If you want to do it yourself, see https://github.com/pybind/cmake_example/blob/cbcf742c566a8bfd1f079b3d87778b17fef4bef5/setup.py#L103/ |
Beta Was this translation helpful? Give feedback.
2 replies
-
Do to requirement for python 2 support - at the moment, I went with the example - and it works for now. I have another project that I will retrofit to use scikit-build-core. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
export CIBW_ARCHS_MACOS="x86_64 arm64" cibuildwheel --config cibuildwheel.toml --output-dir "$(System.DefaultWorkingDirectory)/dist" .
cibuildwheel.toml:
[[tool.cibuildwheel.overrides]] select = "*-musllinux*" before-all = "apk add flex bison cmake"
So setup.py is invoking cmake. The built libraries for macOS are MachO - x86_64 in both case.
I suspect that I will need to pass a flag to cmake to enable cross compiling.
a) Is there an environment variable set indicating building architecture - so I can detect in setup.py
b) Any ideas what I would pass to CMAKE?
Beta Was this translation helpful? Give feedback.
All reactions