-
Notifications
You must be signed in to change notification settings - Fork 16
Refactor CI to produce 64-bit integer interface wheels for WoA #199
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is anyone using 32-but builds of Python for Windows on ARM?
If so, I guess we do need the
INTERFACE64=0; BUILD_BITS=32
option. But I guess we also need anINTERFACE64=0; BUILD_BITS=64
option, for people building Numpy or Scipy with 32-bit interfaces, but 64-bit builds.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, 32-bit Python for Windows on ARM is not a thing, there's only
win_arm64
.We do need LP64 (
scipy-openblas32
) and ILP64 (scipy-openblas64
) wheels though, that's orthogonal to interpreter bitness.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I was incorrect here - but my comment was meant to say that we do not want or need a
INTERFACE64=0; BUILD_BITS=32
build - as we have here, but we do want and need anINTERFACE64=0; BUILD_BITS=64
option, that I think we do not have.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the matrix/environment variables needs improvement. Both wheels can be imported by 64-bit python win-arm64.
The "32-bit" build uses
INTERFACE64: 0
,BUILD_BITS: 32
. It printsBuilding for 64-bit binary, 32-bit interface
at the beginning of thebuild step, and later prints outCompiling a 64-bit binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @matthew-brett,
Just to clarify:
In our workflow,
BUILD_BITS
does not refer to the binary architecture — it always builds 64-bit binaries for WoA. Instead,BUILD_BITS
maps to the integer interface width used by OpenBLAS:INTERFACE64=0 → 32-bit integer interface → BUILD_BITS=32 → scipy_openblas32
INTERFACE64=1 → 64-bit integer interface → BUILD_BITS=64 → scipy_openblas64
So we already have both:
We use the
BUILD_BITS
variable purely as a naming and testing label — as seen here in the CI script:windows-arm.yml#L76-L80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we then remove
BUILD_BITS
on the basis that it's confusing, and have some variable likeINTERFACE_BITS
set internally to32
forINTERFACE64=0
etc?