summaryrefslogtreecommitdiffstats
path: root/python/conda/bld.bat
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-28 16:37:53 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-12-01 15:01:38 +0100
commit93d14a3424d4bdc980eeab3f02e250c07e6c37b6 (patch)
tree8febba68b7d99f1174e92bd23a5f3495bd301a0b /python/conda/bld.bat
parent5d9b7b00267e99baefcfba2d53dbfc312daa84eb (diff)
downloadastra-93d14a3424d4bdc980eeab3f02e250c07e6c37b6.tar.gz
astra-93d14a3424d4bdc980eeab3f02e250c07e6c37b6.tar.bz2
astra-93d14a3424d4bdc980eeab3f02e250c07e6c37b6.tar.xz
astra-93d14a3424d4bdc980eeab3f02e250c07e6c37b6.zip
Add conda build scripts for win-64/py35
Diffstat (limited to 'python/conda/bld.bat')
-rw-r--r--python/conda/bld.bat35
1 files changed, 35 insertions, 0 deletions
diff --git a/python/conda/bld.bat b/python/conda/bld.bat
new file mode 100644
index 0000000..9da8cd4
--- /dev/null
+++ b/python/conda/bld.bat
@@ -0,0 +1,35 @@
+@echo off
+
+set R=%SRC_DIR%%
+
+set B_VC=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64
+call "%B_VC%\vcvars64.bat"
+
+cd /D %R%
+
+set B_BV=1_61
+
+mkdir "%R%\lib\x64"
+mkdir "%R%\bin\x64\Release_CUDA"
+
+cd /D %CONDA_PREFIX%\Library\lib
+
+
+copy boost_unit_test_framework-vc140-mt-%B_BV%.lib %R%\lib\x64
+copy libboost_chrono-vc140-mt-%B_BV%.lib %R%\lib\x64
+copy libboost_date_time-vc140-mt-%B_BV%.lib %R%\lib\x64
+copy libboost_system-vc140-mt-%B_BV%.lib %R%\lib\x64
+copy libboost_thread-vc140-mt-%B_BV%.lib %R%\lib\x64
+
+cd /D %CONDA_PREFIX%\Library\include
+
+xcopy /i /e /q boost "%R%\lib\include\boost"
+
+cd /D %R%
+
+cd python
+
+set VS90COMNTOOLS=%VS140COMNTOOLS%
+set CL=/DASTRA_CUDA /DASTRA_PYTHON "/I%R%\include" "/I%R%\lib\include" "/I%CUDA_PATH%\include"
+copy %CONDA_PREFIX%\Library\lib\AstraCuda64.lib astra.lib
+python builder.py build_ext --compiler=msvc install