summaryrefslogtreecommitdiffstats
path: root/python/conda/libastra
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-12-01 06:03:22 -0800
committerGitHub <noreply@github.com>2016-12-01 06:03:22 -0800
commitfbe1a7638adb10e45eeff4b04caadab8ab324a2d (patch)
tree8febba68b7d99f1174e92bd23a5f3495bd301a0b /python/conda/libastra
parent75ae79136451cad28375c1bbce6e6cac6080f29e (diff)
parent93d14a3424d4bdc980eeab3f02e250c07e6c37b6 (diff)
downloadastra-fbe1a7638adb10e45eeff4b04caadab8ab324a2d.tar.gz
astra-fbe1a7638adb10e45eeff4b04caadab8ab324a2d.tar.bz2
astra-fbe1a7638adb10e45eeff4b04caadab8ab324a2d.tar.xz
astra-fbe1a7638adb10e45eeff4b04caadab8ab324a2d.zip
Merge pull request #81 from wjp/conda_release
Add scripts for building conda packages using Docker
Diffstat (limited to 'python/conda/libastra')
-rw-r--r--python/conda/libastra/bld.bat33
-rw-r--r--python/conda/libastra/meta.yaml12
2 files changed, 41 insertions, 4 deletions
diff --git a/python/conda/libastra/bld.bat b/python/conda/libastra/bld.bat
new file mode 100644
index 0000000..bb7329a
--- /dev/null
+++ b/python/conda/libastra/bld.bat
@@ -0,0 +1,33 @@
+@echo off
+
+set B_VC=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64
+
+call "%B_VC%\vcvars64.bat"
+
+set R=%SRC_DIR%
+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%
+
+msbuild astra_vc14.sln /p:Configuration=Release_CUDA /p:Platform=x64 /t:astra_vc14
+
+copy bin\x64\Release_CUDA\AstraCuda64.dll "%CONDA_PREFIX%\Library\bin"
+copy bin\x64\Release_CUDA\AstraCuda64.lib "%CONDA_PREFIX%\Library\lib"
+copy "%CUDA_PATH%\bin\cudart64_80.dll" "%CONDA_PREFIX%\Library\bin"
+copy "%CUDA_PATH%\bin\cufft64_80.dll" "%CONDA_PREFIX%\Library\bin"
diff --git a/python/conda/libastra/meta.yaml b/python/conda/libastra/meta.yaml
index 7c92e04..c9135ab 100644
--- a/python/conda/libastra/meta.yaml
+++ b/python/conda/libastra/meta.yaml
@@ -10,13 +10,17 @@ source:
build:
number: 0
script_env:
- - CC
- - CXX
- - CUDA_ROOT
+ - CC # [not win]
+ - CXX # [not win]
+ - CUDA_ROOT # [not win]
requirements:
build:
- - boost
+ - boost ==1.61 # [win]
+ - vs2015_runtime # [win]
+
+ run:
+ - vs2015_runtime # [win]
about:
home: http://www.astra-toolbox.com