Skip to content

Commit 4da1059

Browse files
Merge pull request #1194 from IntelPython/bld-bat-add-platform-dir-check
Check that %PLATFORM_DIR% exists before copying there
2 parents cddf05f + b31c42f commit 4da1059

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

conda-recipe/bld.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
3838
if errorlevel 1 exit 1
3939
)
4040

41-
rem copy back
42-
copy /Y "%FN%" "%PLATFORM_DIR%"
43-
if errorlevel 1 exit 1
41+
if EXIST "%PLATFORM_DIR%" (
42+
rem copy back
43+
copy /Y "%FN%" "%PLATFORM_DIR%"
44+
if errorlevel 1 exit 1
45+
)

0 commit comments

Comments
 (0)