Skip to content

Tell cibuildwheel to consider Scientific Python wheels#1021

Merged
mhucka merged 1 commit intoquantumlib:mainfrom
mhucka:add-cibuildwheel-override
Feb 27, 2026
Merged

Tell cibuildwheel to consider Scientific Python wheels#1021
mhucka merged 1 commit intoquantumlib:mainfrom
mhucka:add-cibuildwheel-override

Conversation

@mhucka
Copy link
Collaborator

@mhucka mhucka commented Feb 27, 2026

On some OS + Python version combinations, binary wheels of NumPy and/or Pandas are not available, and qsim builds take extra long. Based on a tip described in the cibuildwheel documentation at https://cibuildwheel.pypa.io/en/stable/faq/#building-with-numpy, it can help to configure cibuildwheel such that it tells pip to look for binary wheels in additional locations such as pypi.anaconda.org.

https://cibuildwheel.pypa.io/en/stable/faq/#building-with-numpy mentions
a trick to improving the chances of getting a precompiled binary wheel
of NumPy: add an additional index to tell pip where it can find
packages.
@github-actions github-actions bot added the Size: XS <10 lines changed label Feb 27, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request introduces a cibuildwheel override configuration to enhance the discovery of precompiled NumPy binary wheels, specifically for Python 3.14 builds. This change adds an extra index URL and allows prerelease packages, which is a common and documented approach to address dependency resolution challenges for newer Python versions in build environments. The implementation adheres to the project's TOML style guide regarding indentation and includes clear comments explaining the purpose and source of the configuration.

@mhucka mhucka requested a review from pavoljuhas February 27, 2026 03:28
@mhucka mhucka changed the title Add another PyPI source for binary wheels Tell cibuildwheel to consider Scientific Python wheels Feb 27, 2026
@mhucka mhucka added this pull request to the merge queue Feb 27, 2026
Merged via the queue into quantumlib:main with commit d225b29 Feb 27, 2026
28 checks passed
@mhucka mhucka deleted the add-cibuildwheel-override branch February 27, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants