Skip to content

Commit d1fd612

Browse files
committed
NO-JIRA: remove --build-constraints from pip install due to unnamed requirements error
1 parent 159766e commit d1fd612

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jupyter/rocm/tensorflow/ubi9-python-3.12/Dockerfile.rocm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ COPY ${TENSORFLOW_SOURCE_CODE}/requirements.txt ./
166166
RUN echo "Installing softwares and packages" && \
167167
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
168168
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
169-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
169+
# Not using --build-constraints=./requirements.txt because error: Unnamed requirements are not allowed as constraints (found: `https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4/
170+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./requirements.txt && \
170171
# setup path for runtime configuration
171172
mkdir /opt/app-root/runtimes && \
172173
# Remove default Elyra runtime-images \

runtimes/rocm-tensorflow/ubi9-python-3.12/Dockerfile.rocm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ COPY ${TENSORFLOW_SOURCE_CODE}/utils ./utils/
9191
RUN echo "Installing softwares and packages" && \
9292
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
9393
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
94-
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./requirements.txt --build-constraints=./requirements.txt && \
94+
# Not using --build-constraints=./requirements.txt because error: Unnamed requirements are not allowed as constraints (found: `https://repo.radeon.com/rocm/manylinux/rocm-rel-6.4/
95+
uv pip install --strict --no-deps --no-cache --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./requirements.txt && \
9596
# Fix permissions to support pip in Openshift environments \
9697
chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
9798
fix-permissions /opt/app-root -P

0 commit comments

Comments
 (0)