summaryrefslogtreecommitdiffstats
path: root/python/conda/libastra
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-03-03 12:23:58 +0100
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2016-03-03 12:26:32 +0100
commit7acb21aa87fdc98c725f72db456270c63c15b96a (patch)
treea556aa6ed42d5ccea3dd1a130e3088d9a4fdd7f5 /python/conda/libastra
parentf24d9457f56f60aa927600261500e4ca681d0033 (diff)
downloadastra-7acb21aa87fdc98c725f72db456270c63c15b96a.tar.gz
astra-7acb21aa87fdc98c725f72db456270c63c15b96a.tar.bz2
astra-7acb21aa87fdc98c725f72db456270c63c15b96a.tar.xz
astra-7acb21aa87fdc98c725f72db456270c63c15b96a.zip
Split conda package into c++ lib and python parts
Diffstat (limited to 'python/conda/libastra')
-rw-r--r--python/conda/libastra/build.sh15
-rw-r--r--python/conda/libastra/meta.yaml22
2 files changed, 37 insertions, 0 deletions
diff --git a/python/conda/libastra/build.sh b/python/conda/libastra/build.sh
new file mode 100644
index 0000000..a80b9c4
--- /dev/null
+++ b/python/conda/libastra/build.sh
@@ -0,0 +1,15 @@
+cd build/linux
+./autogen.sh
+./configure --with-python --with-cuda=$CUDA_ROOT --prefix=$PREFIX
+if [ $MAKEOPTS == '<UNDEFINED>' ]
+ then
+ MAKEOPTS=""
+fi
+make $MAKEOPTS install-libraries
+LIBPATH=lib
+if [ $ARCH == 64 ]
+ then
+ LIBPATH+=64
+fi
+cp -P $CUDA_ROOT/$LIBPATH/libcudart.so.* $PREFIX/lib
+cp -P $CUDA_ROOT/$LIBPATH/libcufft.so.* $PREFIX/lib
diff --git a/python/conda/libastra/meta.yaml b/python/conda/libastra/meta.yaml
new file mode 100644
index 0000000..73fa0d7
--- /dev/null
+++ b/python/conda/libastra/meta.yaml
@@ -0,0 +1,22 @@
+package:
+ name: libastra
+ version: '1.8b'
+
+source:
+ git_url: https://github.com/astra-toolbox/astra-toolbox.git
+ #git_tag: v1.7.1 # Change to 1.8 after release
+
+build:
+ number: 0
+ script_env:
+ - CUDA_ROOT
+ - MAKEOPTS
+
+about:
+ home: http://www.astra-toolbox.com
+ license: GPLv3
+ summary: 'The ASTRA Toolbox is a Python toolbox of high-performance GPU primitives for 2D and 3D tomography.'
+
+# See
+# http://docs.continuum.io/conda/build.html for
+# more information about meta.yaml