-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross Compilation in Build Hook #1636
Comments
It isn't obvious to me that If it does have all that information, it might be worth updating the docs and/or providing examples of values this I'll take a look this afternoon though 👍 |
sorry that is correct, I skimmed and saw the word target which refers to something specific in Hatch-land, I will read this further tomorrow |
I just did a really quick check, and I'm finding that Appreciate you looking into this though! |
Just following up on this ticket in case you identified anything useful? |
Summary
What are the best practices for detecting the target architecture when cross-compiling a platform-specific wheel using a Hatch build script?
Background
I am building a wheel which includes a binary extension compiled using
cffi
. I have a custom build hook which performs the following steps:packaging
'ssys_tags
I recently tried to enable support for Windows ARM builds; however, ran into issues when trying to build the wheels using cibuildwheel due to a mismatch between what
sys_tags
returns, and the actual target achitecture. I was wondering first whether it was an issue with cibuildwheel and asked the question over atsys_tags
produceswin_amd64
cibuildwheel#1942.Also from the cibuildwheel docs:
It is unclear, at this stage, what should be changed. I can see a couple options:
cibuildwheel
is updated to ensure compatibility withpackaging
(or vice-versa),hatch
exposes an API so that a build script can know what target is being built.I do wonder whether you think (2) should be implemented regardless. Hatch evidently has some logic to determine the tags, but that is (afaik) hidden and not otherwise accessible.
The text was updated successfully, but these errors were encountered: