Skip to content

Commit 352517a

Browse files
authored
[Windows] update compile_bundle.bat (#4178)(#4180)
1 parent eedd4f9 commit 352517a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/compile_bundle.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,19 @@ set "CMAKE_PREFIX_PATH="
140140
call conda remove mkl-static mkl-include -y
141141
for %%f in ("dist\*.whl") do python -m pip install --force-reinstall --no-deps "%%f"
142142

143+
call "%DPCPP_ENV%"
144+
call "%ONEMKL_ENV%"
145+
143146
rem TorchVision
144147
cd ..\vision
145148
call conda install -y --force-reinstall libpng libjpeg-turbo -c conda-forge
149+
set "DISTUTILS_USE_SDK=1"
146150
python setup.py clean
147151
python setup.py bdist_wheel
148152

153+
set "DISTUTILS_USE_SDK="
149154
for %%f in ("dist\*.whl") do python -m pip install --force-reinstall --no-deps "%%f"
150155

151-
call "%DPCPP_ENV%"
152-
call "%ONEMKL_ENV%"
153156

154157
rem TorchAudio
155158
cd ..\audio

0 commit comments

Comments
 (0)