@@ -23,10 +23,11 @@ if "%1"=="" (
23
23
echo Building for %BUILD_BIT% -bit configuration...
24
24
25
25
:: Define destination directory
26
+ pushd " %~dp0 \.."
26
27
set ob_out_root = %CD% \local\scipy_openblas
27
28
set ob_64 = " %ob_out_root% 64"
28
29
set ob_32 = " %ob_out_root% 32"
29
- if exist %ob_64% copy %ob_64% %ob_32%
30
+ if exist %ob_64% xcopy %ob_64% %ob_32% /I /Y
30
31
set DEST_DIR = %ob_32%
31
32
32
33
:: Clone OpenBLAS
@@ -43,8 +44,8 @@ if errorlevel 1 (
43
44
)
44
45
45
46
:: Create build directory and navigate to it
46
- if not exist build mkdir build
47
- cd build
47
+ if exist build (rmdir /S /Q build || exit /b 1)
48
+ mkdir build || exit /b 1 & cd build || exit /b 1
48
49
49
50
echo Setting up ARM64 Developer Command Prompt and running CMake...
50
51
@@ -97,7 +98,7 @@ if exist openblasconfigversion.cmake copy /Y openblasconfigversion.cmake "%DEST_
97
98
:: Copy header files
98
99
echo Copying generated header files...
99
100
if exist generated xcopy /E /Y generated " %DEST_DIR% \include\"
100
- if exist lapacke_mangling copy /Y lapacke_mangling " %DEST_DIR% \include\"
101
+ if exist lapacke_mangling.h copy /Y lapacke_mangling.h " %DEST_DIR% \include\"
101
102
if exist openblas_config.h copy /Y openblas_config.h " %DEST_DIR% \include\"
102
103
103
104
@@ -111,6 +112,7 @@ cd ../..
111
112
112
113
:: Build the Wheel & Install It
113
114
echo Running 'python -m build' to build the wheel...
115
+ python -c " import build" 2 > NUL || pip install build
114
116
python -m build
115
117
if errorlevel 1 exit /b 1
116
118
0 commit comments