File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5050fi
5151
5252if [ " $( uname) " == " Darwin" -a " ${PLAT} " == " x86_64" ]; then
53- local PYTHON=" arch -x86_64 python3"
53+ PYTHON=" arch -x86_64 python3"
5454else
55- local PYTHON=python3
55+ PYTHON=python3
5656fi
5757if [ " ${INTERFACE64} " != " 1" ]; then
5858 # rewrite the name of the project to scipy-openblas32
Original file line number Diff line number Diff line change @@ -171,16 +171,28 @@ if errorlevel 1 exit /b 1
171171
172172:: Create pkgconfig scipy-openblas.pc
173173cd ../../local
174+ if errorlevel 1 (
175+ echo Current directory %CD% , cannot cd ../../local
176+ exit /b 1
177+ )
174178if " %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
183191cd /..
192+ if errorlevel 1 (
193+ echo Current directory %CD% , cannot cd ../../local
194+ exit /b 1
195+ )
184196
185197:: Build the Wheel & Install It
186198echo Running 'python -m build' to build the wheel...
You can’t perform that action at this time.
0 commit comments