Skip to content

Commit 456c0b9

Browse files
committed
remove print
1 parent 9e00147 commit 456c0b9

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packaging/pre_build_script.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,22 @@ set -x
55
# Install dependencies
66
python3 -m pip install pyyaml
77

8-
# CU_VERSION: cu130, cu129, etc.
9-
# CU_MAJOR_VERSION: 13, 12, etc.
10-
# CU_MINOR_VERSION: 0, 9, etc.
11-
CU_MAJOR_VERSION=${CU_VERSION:2:2}
12-
CU_MINOR_VERSION=${CU_VERSION:4:1}
13-
ctk_name="cuda-toolkit-${CU_MAJOR_VERSION}-${CU_MINOR_VERSION}"
14-
158
if [[ $(uname -m) == "aarch64" ]]; then
169
IS_AARCH64=true
1710
BAZEL_PLATFORM=arm64
1811
os_name=$(cat /etc/os-release | grep -w "ID" | cut -d= -f2)
1912
if [[ ${os_name} == "ubuntu" ]]; then
2013
IS_JETPACK=true
2114
apt-get update
22-
apt-get install -y ninja-build gettext curl libopenblas-dev zip unzip libfmt-dev libopenblas-dev ${ctk_name}
15+
apt-get install -y ninja-build gettext curl libopenblas-dev zip unzip libfmt-dev libopenblas-dev
2316
else
2417
IS_SBSA=true
2518
yum install -y ninja-build gettext zip unzip
26-
yum install -y fmt-devel ${ctk_name}
19+
yum install -y fmt-devel
2720
fi
2821
else
2922
BAZEL_PLATFORM="amd64"
30-
yum install -y fmt-devel ${ctk_name}
23+
yum install -y fmt-devel
3124
fi
3225

3326

@@ -69,7 +62,7 @@ export TORCH_INSTALL_PATH=$(python -c "import torch, os; print(os.path.dirname(t
6962
# CU_UPPERBOUND eg:13.0 or 12.9
7063
# tensorrt tar for linux and windows are different across cuda version
7164
# for sbsa it is the same tar across cuda version
72-
if [[ ${CU_MAJOR_VERSION} == "13" ]]; then
65+
if [[ ${CU_VERSION:2:2} == "13" ]]; then
7366
export CU_UPPERBOUND="13.0"
7467
else
7568
export CU_UPPERBOUND="12.9"

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ def get_requirements():
763763
f"{tensorrt_prefix}-bindings>=10.13.0,<10.14.0",
764764
f"{tensorrt_prefix}-libs>=10.13.0,<10.14.0",
765765
]
766-
print(f"{requirements=}")
767766
return requirements
768767

769768

0 commit comments

Comments
 (0)