Skip to content

Commit

Permalink
Add pip wheel build constraints to fix numpy builds (#133962)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Dec 25, 2024
1 parent 0020c48 commit 687afd2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,20 @@ jobs:
# Use C-Extension for SQLAlchemy
echo "REQUIRE_SQLALCHEMY_CEXT=1"
# Add additional pip wheel build constraints
echo "PIP_CONSTRAINT=build_constraints.txt"
) > .env_file
- name: Write pip wheel build constraints
run: |
(
# ninja 1.11.1.2 + 1.11.1.3 seem to be broken on at least armhf
# this caused the numpy builds to fail
# https://github.com/scikit-build/ninja-python-distributions/issues/274
echo "ninja==1.11.1.1"
) > build_constraints.txt
- name: Upload env_file
uses: actions/[email protected]
with:
Expand All @@ -86,6 +98,13 @@ jobs:
include-hidden-files: true
overwrite: true

- name: Upload build_constraints
uses: actions/[email protected]
with:
name: build_constraints
path: ./build_constraints.txt
overwrite: true

- name: Upload requirements_diff
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -123,6 +142,11 @@ jobs:
with:
name: env_file

- name: Download build_constraints
uses: actions/[email protected]
with:
name: build_constraints

- name: Download requirements_diff
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -167,6 +191,11 @@ jobs:
with:
name: env_file

- name: Download build_constraints
uses: actions/[email protected]
with:
name: build_constraints

- name: Download requirements_diff
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 687afd2

Please sign in to comment.