diff options
| author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-06-10 12:45:52 -0500 | 
|---|---|---|
| committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-12-04 16:08:06 +0100 | 
| commit | b7c5deba2182514ffd6af61bac65ec9e0c0ebfd7 (patch) | |
| tree | 972a908aea4091f32f293e7e9ea061493e8e45ae | |
| parent | b6891106eb167e7399a88efe858abccb8b3dd0c0 (diff) | |
Add conda build scripts
| -rw-r--r-- | build/linux/Makefile.in | 4 | ||||
| -rw-r--r-- | python/conda/build.sh | 16 | ||||
| -rw-r--r-- | python/conda/meta.yaml | 40 | 
3 files changed, 60 insertions, 0 deletions
| diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in index 0361e97..8eb5ffe 100644 --- a/build/linux/Makefile.in +++ b/build/linux/Makefile.in @@ -266,6 +266,10 @@ py: libastra.la  	cd ../../python; CPPFLAGS="${PYCPPFLAGS}" LDFLAGS="${PYLDFLAGS}" $(PYTHON) builder.py install \  	--install-base=./finalbuild --install-headers=./finalbuild --install-purelib=./finalbuild \  	--install-platlib=./finalbuild --install-scripts=./finalbuild --install-data=./finalbuild + +python-root-install: libastra.la +	cd ../../python; CPPFLAGS="${PYCPPFLAGS}" LDFLAGS="${PYLDFLAGS}" $(PYTHON) builder.py install +  endif 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 diff --git a/python/conda/meta.yaml b/python/conda/meta.yaml new file mode 100644 index 0000000..45ea812 --- /dev/null +++ b/python/conda/meta.yaml @@ -0,0 +1,40 @@ +package: +  name: astra-toolbox +  version: '1.6' + +source: +  git_url: https://github.com/astra-toolbox/astra-toolbox.git +  git_tag: v1.6 + +build: +  number: 0 +  script_env: +    - CUDA_ROOT +    - MAKEOPTS + +test: +  imports: +    - astra + +requirements: +  build: +    - python +    - cython >=0.13 +    - numpy +    - six + +  run: +    - python +    - numpy +    - scipy +    - six + + +about: +  home: http://sourceforge.net/p/astra-toolbox/wiki/Home/ +  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 | 
