Skip to content

Commit 96cd1e2

Browse files
[main] Don't override numpy versions coming from requirements.txt (#82)
Relates to ROCm/pytorch#2253 This change is required to avoid overriding the numpy2.x version with numpy1.x.
1 parent ce6cc54 commit 96cd1e2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

manywheel/build_torch_wheel.sh

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,6 @@ fi
132132
pushd "$PYTORCH_ROOT"
133133
python setup.py clean
134134
retry pip install -r requirements.txt
135-
ver() {
136-
printf "%3d%03d%03d%03d" $(echo "$1" | tr '.' ' ');
137-
}
138-
case ${DESIRED_PYTHON} in
139-
cp38*)
140-
retry pip install -q numpy==1.15
141-
;;
142-
cp31*)
143-
# CIRCLE_TAG contains the PyTorch version such as "1.13.0"
144-
if [[ $(ver ${CIRCLE_TAG}) -ge $(ver 2.4) ]]; then
145-
retry pip install -q --pre numpy==2.0.2
146-
else
147-
retry pip install -q "numpy<2.0.0"
148-
fi
149-
;;
150-
# Should catch 3.9+
151-
*)
152-
if [[ $(ver ${CIRCLE_TAG}) -ge $(ver 2.4) ]]; then
153-
retry pip install -q --pre numpy==2.0.2
154-
else
155-
retry pip install -q "numpy<2.0.0"
156-
fi
157-
;;
158-
esac
159135

160136
# ROCm RHEL8 packages are built with cxx11 abi symbols
161137
if [[ "$DESIRED_DEVTOOLSET" == *"cxx11-abi"* || "$DESIRED_CUDA" == *"rocm"* ]]; then

0 commit comments

Comments
 (0)