Skip to content

Commit 7fdb524

Browse files
robertbartelaaraney
authored andcommitted
Change Action numpy fix to use constraints.
Using pip constraints to ensure any downstream `input.additional_python_requirements` that may be installed also are prevented from installing a problematic version.
1 parent 7480968 commit 7fdb524

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/actions/ngen-build/action.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ runs:
120120
tar xjf boost_1_79_0.tar.bz2
121121
shell: bash
122122

123+
- name: Set Pip Constraints
124+
run: |
125+
echo "numpy<2.0" > constraints.txt
126+
sudo mv constraints.txt /constraints.txt
127+
echo "PIP_CONSTRAINT=/constraints.txt" >> $GITHUB_ENV
128+
shell: bash
129+
123130
- name: Cache Python Dependencies
124131
id: cache-py3-dependencies
125132
uses: actions/cache@v3
@@ -144,7 +151,7 @@ runs:
144151
python3 -m venv .venv
145152
. .venv/bin/activate
146153
pip install pip
147-
pip install numpy<2.0.0
154+
pip install numpy
148155
deactivate
149156
shell: bash
150157

0 commit comments

Comments
 (0)