summaryrefslogtreecommitdiffstats
path: root/python/conda/build.sh
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-06-10 12:45:52 -0500
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-12-04 16:08:06 +0100
commitb7c5deba2182514ffd6af61bac65ec9e0c0ebfd7 (patch)
tree972a908aea4091f32f293e7e9ea061493e8e45ae /python/conda/build.sh
parentb6891106eb167e7399a88efe858abccb8b3dd0c0 (diff)
downloadastra-b7c5deba2182514ffd6af61bac65ec9e0c0ebfd7.tar.gz
astra-b7c5deba2182514ffd6af61bac65ec9e0c0ebfd7.tar.bz2
astra-b7c5deba2182514ffd6af61bac65ec9e0c0ebfd7.tar.xz
astra-b7c5deba2182514ffd6af61bac65ec9e0c0ebfd7.zip
Add conda build scripts
Diffstat (limited to 'python/conda/build.sh')
-rw-r--r--python/conda/build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/conda/build.sh b/python/conda/build.sh
new file mode 100644
index 0000000..814ea7e
--- /dev/null
+++ b/python/conda/build.sh
@@ -0,0 +1,16 @@
+cd build/linux
+./autogen.sh
+./configure --with-python --with-cuda=$CUDA_ROOT --prefix=$PREFIX
+if [ $MAKEOPTS == '<UNDEFINED>' ]
+ then
+ MAKEOPTS=""
+fi
+make $MAKEOPTS install-libraries
+make $MAKEOPTS python-root-install
+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