diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2016-11-24 04:25:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 04:25:02 -0800 |
commit | c4b5018ca57213601d0b31139be8c4268a308910 (patch) | |
tree | 6a107420f7b6feb54429e6dbd1bb420f2f15d7b4 /build/msvc/build_python27.bat | |
parent | fc43ab40e6aaed28ecbeb904b3ec5d67f2ded77c (diff) | |
parent | 80d5397e251d8e12c8cd77efcacc54b9f7de3f0b (diff) | |
download | astra-c4b5018ca57213601d0b31139be8c4268a308910.tar.gz astra-c4b5018ca57213601d0b31139be8c4268a308910.tar.bz2 astra-c4b5018ca57213601d0b31139be8c4268a308910.tar.xz astra-c4b5018ca57213601d0b31139be8c4268a308910.zip |
Merge pull request #74 from wjp/windows
Move to VS2015+CUDA8 and automate Windows builds
Diffstat (limited to 'build/msvc/build_python27.bat')
-rw-r--r-- | build/msvc/build_python27.bat | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/msvc/build_python27.bat b/build/msvc/build_python27.bat new file mode 100644 index 0000000..a9495f0 --- /dev/null +++ b/build/msvc/build_python27.bat @@ -0,0 +1,28 @@ +@echo off + +cd /D %~dp0 +cd ..\.. +set R=%CD% + +call "%~dp0build_env.bat" + +call "%B_WINPYTHON27%\scripts\env.bat" +call "%B_VC%\vcvars64.bat" + +cd /D %R% + +msbuild astra_vc14.sln /p:Configuration=Release_CUDA /p:Platform=x64 /t:astra_vc14 + +cd python + +rd /s /q build +rd /s /q "%WINPYDIR%\lib\site-packages\astra" + +set VS90COMNTOOLS=%VS140COMNTOOLS% +set CL=/DASTRA_CUDA /DASTRA_PYTHON /EHsc +set INCLUDE=%R%\include;%R%\lib\include;%CUDA_PATH%\include +copy ..\bin\x64\Release_CUDA\AstraCuda64.lib astra.lib +python builder.py build_ext --compiler=msvc install +copy ..\bin\x64\Release_CUDA\AstraCuda64.dll "%WINPYDIR%\lib\site-packages\astra" + +pause |