From 50d1295123c7fa0cff88abfcbe2610f9a26878d7 Mon Sep 17 00:00:00 2001 From: mhucka Date: Fri, 27 Feb 2026 03:26:01 +0000 Subject: [PATCH] Add another PyPI source for binary wheels 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. --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b3d397cb..0e8a3b73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -135,6 +135,14 @@ pytest -n auto -s -v {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package} """ +[[tool.cibuildwheel.overrides]] +# Help increase the chances that pip will find binary wheels for NumPy. +# See https://cibuildwheel.pypa.io/en/stable/faq/#building-with-numpy +select = ["cp314*"] +inherit.environment = "append" +environment.PIP_EXTRA_INDEX_URL = "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/" +environment.PIP_PRERELEASE = "allow" + [tool.cibuildwheel.macos] before-build = """ brew install -q libomp llvm@19 &&