Skip to content

Commit 284b965

Browse files
committed
Clear the pip constraints
Signed-off-by: Shobhit Verma <[email protected]>
1 parent 553ec7b commit 284b965

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

docker/Dockerfile.multi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ ARG GITHUB_MIRROR=""
2828
RUN echo "Using GitHub mirror: $GITHUB_MIRROR"
2929
SHELL ["/bin/bash", "-c"]
3030

31-
# Clean up the pip constraint file from the base NGC PyTorch image.
32-
RUN [ -f /etc/pip/constraint.txt ] && : > /etc/pip/constraint.txt || true
33-
3431
FROM base AS devel
3532

3633
ARG TRT_VER

docker/common/install.sh

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
#!/bin/bash
22

3-
# Function to assert that all provided variable names are non-empty
4-
assert_non_empty() {
5-
for var_name in "$@"; do
6-
local var_value="${!var_name}"
7-
8-
# Check if the variable is empty or not set
9-
if [[ -z "$var_value" ]]; then
10-
echo "Error: Variable '$var_name' is empty or not set" >&2
11-
exit 1
12-
fi
13-
done
14-
}
15-
163
echo "TRT_VER: $TRT_VER"
174
echo "CUDA_VER: $CUDA_VER"
185
echo "CUDNN_VER: $CUDNN_VER"
196
echo "NCCL_VER: $NCCL_VER"
207
echo "CUBLAS_VER: $CUBLAS_VER"
218

22-
23-
249
# Default values
2510
base=0
2611
cmake=0
@@ -101,8 +86,12 @@ export PYTORCH_CUDA_ALLOC_CONF="garbage_collection_threshold:0.99999"
10186

10287
if [ $base -eq 1 ]; then
10388
echo "Installing base dependencies..."
89+
# Clean up the pip constraint file from the base NGC PyTorch image.
90+
[ -f /etc/pip/constraint.txt ] && : > /etc/pip/constraint.txt || true
91+
10492
PYTHON_VERSION="3.12.3"
10593
echo "Using Python version: $PYTHON_VERSION"
94+
10695
GITHUB_MIRROR=$GITHUB_MIRROR bash ./install_base.sh $PYTHON_VERSION
10796
fi
10897

0 commit comments

Comments
 (0)