Skip to content

Commit 421695f

Browse files
committed
debugging, fix script
1 parent 8236baa commit 421695f

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

tools/build_prepare_wheel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ else
5050
fi
5151

5252
if [ "$(uname)" == "Darwin" -a "${PLAT}" == "x86_64" ]; then
53-
local PYTHON="arch -x86_64 python3"
53+
PYTHON="arch -x86_64 python3"
5454
else
55-
local PYTHON=python3
55+
PYTHON=python3
5656
fi
5757
if [ "${INTERFACE64}" != "1" ]; then
5858
# rewrite the name of the project to scipy-openblas32

tools/build_steps_win_arm64.bat

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,33 @@ echo Copying LAPACKE header files...
169169
xcopy /Y "..\lapack-netlib\lapacke\include\*.h" "%DEST_DIR%\include\"
170170
if errorlevel 1 exit /b 1
171171

172-
:: Create pkgconfig scipy-openblas.pc
172+
echo Create pkgconfig scipy-openblas.pc
173173
cd ../../local
174+
if errorlevel 1 (
175+
echo Current directory %CD%, cannot cd ../../local
176+
exit /b 1
177+
)
174178
if "%if_bits%"=="32" (
175179
mkdir scipy_openblas32\lib\pkgconfig
176180
python -c "import scipy_openblas32 as s; print(s.get_pkg_config(use_prefix=True))" > scipy_openblas32/lib/pkgconfig/scipy-openblas.pc
177181
) else (
178182
mkdir scipy_openblas64\lib\pkgconfig
179183
python -c "import scipy_openblas64 as s; print(s.get_pkg_config(use_prefix=True))" > scipy_openblas64/lib/pkgconfig/scipy-openblas.pc
180184
)
185+
if errorlevel 1 (
186+
echo could not construct scipy-openblas.pc
187+
exit /b 1
188+
)
181189

182190
:: Move back to the root directory
183-
cd /..
191+
cd ..
192+
if errorlevel 1 (
193+
echo Current directory %CD%, cannot cd ..
194+
exit /b 1
195+
)
184196

185197
:: Build the Wheel & Install It
186-
echo Running 'python -m build' to build the wheel...
198+
echo Running 'python -m build' to build the wheel in %CD%
187199
python -c "import build" 2>NUL || pip install build
188200
if "%if_bits%"=="64" (
189201
python -m build

0 commit comments

Comments
 (0)