Skip to content

Commit

Permalink
Change Action numpy fix to use constraints.
Browse files Browse the repository at this point in the history
Using pip constraints to ensure any downstream
`input.additional_python_requirements` that may be installed also are
prevented from installing a problematic version.
  • Loading branch information
robertbartel authored and christophertubbs committed Oct 16, 2024
1 parent c321cb3 commit 17c2984
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/ngen-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ runs:
tar xjf boost_1_79_0.tar.bz2
shell: bash

- name: Set Pip Constraints
run: |
echo "numpy<2.0" > constraints.txt
sudo mv constraints.txt /constraints.txt
echo "PIP_CONSTRAINT=/constraints.txt" >> $GITHUB_ENV
shell: bash

- name: Cache Python Dependencies
id: cache-py3-dependencies
uses: actions/cache@v3
Expand All @@ -144,7 +151,7 @@ runs:
python3 -m venv .venv
. .venv/bin/activate
pip install pip
pip install numpy<2.0.0
pip install numpy
deactivate
shell: bash

Expand Down

0 comments on commit 17c2984

Please sign in to comment.