summaryrefslogtreecommitdiffstats
path: root/python/conda/astra-toolbox/bld.bat
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-01-24 16:44:18 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-03-20 15:50:22 +0100
commit9f3f78472f7be84694baef8e67fec382febce639 (patch)
treea5e03b428a1f417a514aa31d099ecb01c2a17d4d /python/conda/astra-toolbox/bld.bat
parentd70274581443afd30d8347dae737c419142c88da (diff)
downloadastra-9f3f78472f7be84694baef8e67fec382febce639.tar.gz
astra-9f3f78472f7be84694baef8e67fec382febce639.tar.bz2
astra-9f3f78472f7be84694baef8e67fec382febce639.tar.xz
astra-9f3f78472f7be84694baef8e67fec382febce639.zip
Move conda astra-toolbox package files to own subdirectory
Recent versions of conda-build (2.1.1 at least) seem to automatically build packages in subdirectories (after the main directory).
Diffstat (limited to 'python/conda/astra-toolbox/bld.bat')
-rw-r--r--python/conda/astra-toolbox/bld.bat33
1 files changed, 33 insertions, 0 deletions
diff --git a/python/conda/astra-toolbox/bld.bat b/python/conda/astra-toolbox/bld.bat
new file mode 100644
index 0000000..15777ce
--- /dev/null
+++ b/python/conda/astra-toolbox/bld.bat
@@ -0,0 +1,33 @@
+@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"
+
+set B_BV=1_62
+set B_BOOST=D:\wjp\boost_%B_BV%_0
+
+cd /D "%B_BOOST%\lib64-msvc-14.0"
+
+mkdir "%R%\lib\x64"
+mkdir "%R%\bin\x64\Release_CUDA"
+
+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 %B_BOOST%
+
+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