You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling arch works only if platform.machine() returns the correct value. However I think that cibuildwheel uses a x86_64 interpreter even for cross-compilation builds.
Is there a way for me to detect from setup.py that cibuildwheel is trying to cross-compile?
If you're running cibuildwheel with CIBW_ARCHS_MACOS=x86_64 arm64, then you won't get universal2. If you're running setup.py outside of cibuildwheel, then I guess it matches the arch that the interpreter was built with, which is universal2.
Description
On https://github.com/louisabraham/pydivsufsort/, my setup.py calls a bash file that builds a dylib file.
https://github.com/louisabraham/pydivsufsort/blob/33802969cbe1bcc3a29ea5c10bc281205794c3e4/setup.py#L39-L52
Calling
arch
works only ifplatform.machine()
returns the correct value. However I think that cibuildwheel uses ax86_64
interpreter even for cross-compilation builds.Is there a way for me to detect from
setup.py
that cibuildwheel is trying to cross-compile?Build log
No response
CI config
https://github.com/louisabraham/pydivsufsort/blob/33802969cbe1bcc3a29ea5c10bc281205794c3e4/.github/workflows/build-and-upload.yml
The text was updated successfully, but these errors were encountered: