Skip to content

Commit 42548cd

Browse files
committed
debugging, fix script
1 parent e4ed8ce commit 42548cd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,28 @@ if errorlevel 1 exit /b 1
171171

172172
:: 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
183191
cd /..
192+
if errorlevel 1 (
193+
echo Current directory %CD%, cannot cd ../../local
194+
exit /b 1
195+
)
184196

185197
:: Build the Wheel & Install It
186198
echo Running 'python -m build' to build the wheel...

0 commit comments

Comments
 (0)