Skip to content

Commit 83cc7ac

Browse files
committed
fix cd mixup
1 parent 421695f commit 83cc7ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tools/build_steps_win_arm64.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,22 @@ if errorlevel 1 exit /b 1
118118

119119
echo Build complete. Returning to Batch.
120120

121-
cd ../../local
121+
cd ../..
122122
if "%if_bits%"=="32" (
123123
echo Rewrite to scipy_openblas32
124124
set out_pyproject=pyproject_64_32.toml
125125
powershell -Command "(Get-Content 'pyproject.toml') -replace 'openblas64', 'openblas32' | Set-Content !out_pyproject!"
126+
cd local
126127
move scipy_openblas64 scipy_openblas32
127128
powershell -Command "(Get-Content 'scipy_openblas32\__main__.py') -replace 'openblas64', 'openblas32' | Out-File 'scipy_openblas32\__main__.py' -Encoding utf8"
128129
powershell -Command "(Get-Content 'scipy_openblas32\__init__.py') -replace 'openblas64', 'openblas32' | Out-File 'scipy_openblas32\__init__.py' -Encoding utf8"
129130
powershell -Command "(Get-Content 'scipy_openblas32\__init__.py') -replace 'openblas_get_config64_', 'openblas_get_config' | Out-File 'scipy_openblas32\__init__.py' -Encoding utf8"
130131
powershell -Command "(Get-Content 'scipy_openblas32\__init__.py') -replace 'cflags =.*', 'cflags = \"-DBLAS_SYMBOL_PREFIX=scipy_\"' | Out-File 'local\scipy_openblas32\__init__.py' -Encoding utf8"
132+
cd ..
131133
)
132134

133135
:: Prepare destination directory
134-
cd ../OpenBLAS/build
136+
cd OpenBLAS/build
135137
echo Preparing destination directory at %DEST_DIR%
136138
if not exist "%DEST_DIR%\lib\cmake\OpenBLAS" mkdir "%DEST_DIR%\lib\cmake\OpenBLAS"
137139
if not exist "%DEST_DIR%\include" mkdir "%DEST_DIR%\include"

0 commit comments

Comments
 (0)