summaryrefslogtreecommitdiffstats
path: root/build/msvc/build_python2.bat
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-06-22 16:13:17 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2018-06-22 16:13:17 +0200
commitdbfbb2a360979de412b9f07d779d1957bfbeece9 (patch)
treefaadfb77e741e2a3fde15a2251905e9250c35951 /build/msvc/build_python2.bat
parenta6df3d32f86cdbc3386d25b823f8f643e6f2cfba (diff)
downloadastra-dbfbb2a360979de412b9f07d779d1957bfbeece9.tar.gz
astra-dbfbb2a360979de412b9f07d779d1957bfbeece9.tar.bz2
astra-dbfbb2a360979de412b9f07d779d1957bfbeece9.tar.xz
astra-dbfbb2a360979de412b9f07d779d1957bfbeece9.zip
Further update Windows release scripts
Diffstat (limited to 'build/msvc/build_python2.bat')
-rw-r--r--build/msvc/build_python2.bat28
1 files changed, 28 insertions, 0 deletions
diff --git a/build/msvc/build_python2.bat b/build/msvc/build_python2.bat
new file mode 100644
index 0000000..4ac2141
--- /dev/null
+++ b/build/msvc/build_python2.bat
@@ -0,0 +1,28 @@
+@echo off
+
+cd /D %~dp0
+cd ..\..
+set R=%CD%
+
+call "%~dp0build_env.bat"
+
+call "%B_WINPYTHON2%\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