File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,22 @@ if exist "%OUTPUT_DIR%\%PYD_NAME%" (
157157 echo [WARNING] PDB file !PDB_NAME! not found in output directory.
158158 )
159159
160+ setlocal enabledelayedexpansion
161+ for %%I in (" %SOURCE_DIR% .." ) do (
162+ set PARENT_DIR = %%~fI
163+ )
164+ echo [DIAGNOSTIC] Parent is: !PARENT_DIR!
165+
166+ set VCREDIST_DLL_PATH = !PARENT_DIR! \libs\windows\!ARCH! \vcredist\msvcp140.dll
167+ echo [DIAGNOSTIC] Looking for msvcp140.dll at " !VCREDIST_DLL_PATH! "
168+
169+ if exist " !VCREDIST_DLL_PATH! " (
170+ copy /Y " !VCREDIST_DLL_PATH! " " %SOURCE_DIR% \.."
171+ echo [SUCCESS] Copied msvcp140.dll from !VCREDIST_DLL_PATH! to " %SOURCE_DIR% \.."
172+ ) else (
173+ echo [ERROR] Could not find msvcp140.dll at " !VCREDIST_DLL_PATH! "
174+ exit /b 1
175+ )
160176) else (
161177 echo [ERROR] Could not find built .pyd file: %PYD_NAME%
162178 REM Exit with an error code here if the .pyd file is not found
You can’t perform that action at this time.
0 commit comments