File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 @@ -169,21 +169,33 @@ echo Copying LAPACKE header files...
169169xcopy /Y " ..\lapack-netlib\lapacke\include\*.h" " %DEST_DIR% \include\"
170170if errorlevel 1 exit /b 1
171171
172- :: Create pkgconfig scipy-openblas.pc
172+ echo 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
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%
187199python -c " import build" 2 > NUL || pip install build
188200if " %if_bits% " == " 64" (
189201 python -m build
You can’t perform that action at this time.
0 commit comments