File tree 1 file changed +12
-6
lines changed 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,18 @@ call %CONDA_HOME%\condabin\activate.bat testenv
93
93
if errorlevel 1 exit /b 1
94
94
set " NO_ARCH_PATH = %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % \noarch"
95
95
mkdir %NO_ARCH_PATH%
96
- for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *') do xcopy " %%i " %NO_ARCH_PATH% /Y
97
- if ERRORLEVEL 1 exit /b 1
98
- call conda index %PYTORCH_FINAL_PACKAGE_DIR%
99
- if errorlevel 1 exit /b 1
100
- echo " before conda install"
101
- call conda install -yq -c " file:///%PYTORCH_FINAL_PACKAGE_DIR% " pytorch== %PYTORCH_BUILD_VERSION% -c pytorch -c numba/label/dev -c nvidia
96
+ for /F " delims=" %%i in ('where /R " %PYTORCH_FINAL_PACKAGE_DIR:/ =\ % " *') do (
97
+ echo Processing file: %%i
98
+ :: Extract the version number from the file name
99
+ for /f " tokens=2 delims=-" %%a in (" %%~nxi " ) do (
100
+ set " PYTORCH_VERSION = %%a "
101
+ echo Version set to: %%a
102
+ )
103
+ xcopy " %%i " %NO_ARCH_PATH% /Y
104
+ )
105
+
106
+ echo pytorch Version: %PYTORCH_VERSION%
107
+ call conda install -yq -c " file:///%PYTORCH_FINAL_PACKAGE_DIR% " pytorch== %PYTORCH_VERSION% -c pytorch -c numba/label/dev -c nvidia
102
108
echo " after conda install"
103
109
echo on
104
110
echo " another test"
You can’t perform that action at this time.
0 commit comments