Skip to content

Commit

Permalink
Debug…
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Feb 15, 2019
1 parent 4943671 commit aa5a3a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utils/build_wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ call conda create -qy -n py36 python=3.6 wheel
call conda create -qy -n py37 python=3.7 wheel

:: Install mingwpy where available:
call activate py27 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy
call activate py33 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy
call activate py34 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy
call activate py27 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy && call deactivate
call activate py33 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy && call deactivate
call activate py34 && call pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy && call deactivate

:: Prepare cython source:
call activate py34
Expand All @@ -26,6 +26,7 @@ call cython src\cpymad\libmadx.pyx -I %MADXDIR%\include
for /f %%G in ('python -c "import sys; print(sys.prefix)"') do (
set "gcc=%%~fG\Scripts\gcc.exe"
)
call deactivate

:: Build cpymad wheels:
if %PLATFORM% == "x86" (
Expand Down Expand Up @@ -54,6 +55,7 @@ setlocal
call activate %py_env% & @echo on
call python setup.py build_ext -c mingw32 --static
call python setup.py bdist_wheel
call deactivate
endlocal
exit /b 0

Expand Down Expand Up @@ -97,5 +99,6 @@ setlocal
-o %builddir%\libmadx.%file_tag%.pyd

call python setup.py bdist_wheel
call deactivate
endlocal
exit /b 0

0 comments on commit aa5a3a1

Please sign in to comment.