Skip to content

Commit f8c300f

Browse files
committed
Clean up code changes
1 parent a39801f commit f8c300f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
set -eou pipefail
22
source "${BUILD_ENV_FILE}"
3-
# ${CONDA_RUN} ${PIP_INSTALL_TORCH} torchvision
3+
4+
# Install test index version of Torch and Torchvision
45
${CONDA_RUN} pip install torch torchvision --index-url https://download.pytorch.org/whl/test/${CU_VERSION}
56
${CONDA_RUN} pip install pyyaml mpmath==1.3.0
7+
8+
# Install TRT 10 from PyPi
69
${CONDA_RUN} pip install tensorrt==10.0.0b6 tensorrt-${CU_VERSION::4}-bindings==10.0.0b6 tensorrt-${CU_VERSION::4}-libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
10+
11+
# Install pre-built Torch-TRT
712
${CONDA_RUN} pip install ${RUNNER_ARTIFACT_DIR}/torch_tensorrt*.whl
813

914
echo -e "Running test script";

packaging/pre_build_script_windows.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
python -m pip install -U numpy packaging pyyaml setuptools wheel
2+
3+
# Install Torch from Test Index
24
python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/test/${CU_VERSION}
5+
6+
# Install TRT 10 from PyPi
37
python -m pip install tensorrt==10.0.0b6 tensorrt-${CU_VERSION::4}-bindings==10.0.0b6 tensorrt-${CU_VERSION::4}-libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
48

59
choco install bazelisk -y

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def load_dep_info():
8282

8383
CXX11_ABI = False
8484
JETPACK_VERSION = None
85-
PY_ONLY = sys.platform.startswith("win")
85+
# TODO: Remove once C++ Runtime is integrated in Windows
86+
PY_ONLY = IS_WINDOWS
8687
NO_TS = False
8788
LEGACY = False
8889
RELEASE = False

0 commit comments

Comments
 (0)