summaryrefslogtreecommitdiffstats
path: root/recipes/python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-01-08 16:23:24 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2018-01-08 16:23:24 +0000
commitd146e1429e3349b5788d2305742d238900f9e2be (patch)
tree8935e9e4def15dcd31ed9b014f172c21c1d9f3f6 /recipes/python
parent34dfb8ca744533fc5ae36593a9fe644516b5ad16 (diff)
downloadframework-d146e1429e3349b5788d2305742d238900f9e2be.tar.gz
framework-d146e1429e3349b5788d2305742d238900f9e2be.tar.bz2
framework-d146e1429e3349b5788d2305742d238900f9e2be.tar.xz
framework-d146e1429e3349b5788d2305742d238900f9e2be.zip
initial commit
Diffstat (limited to 'recipes/python')
-rw-r--r--recipes/python/bld.bat13
-rw-r--r--recipes/python/build.sh9
-rw-r--r--recipes/python/meta.yaml36
3 files changed, 58 insertions, 0 deletions
diff --git a/recipes/python/bld.bat b/recipes/python/bld.bat
new file mode 100644
index 0000000..f4c395c
--- /dev/null
+++ b/recipes/python/bld.bat
@@ -0,0 +1,13 @@
+IF NOT DEFINED CIL_VERSION (
+ECHO CIL_VERSION Not Defined.
+exit 1
+)
+
+mkdir "%SRC_DIR%\ccpi"
+xcopy /e "%RECIPE_DIR%\..\..\.." "%SRC_DIR%\ccpi"
+cd ccpi\Wrappers\python
+
+%PYTHON% setup.py build_ext
+if errorlevel 1 exit 1
+%PYTHON% setup.py install
+if errorlevel 1 exit 1
diff --git a/recipes/python/build.sh b/recipes/python/build.sh
new file mode 100644
index 0000000..0c6ad30
--- /dev/null
+++ b/recipes/python/build.sh
@@ -0,0 +1,9 @@
+if [ -z "$CIL_VERSION" ]; then
+ echo "Need to set CIL_VERSION"
+ exit 1
+fi
+mkdir ${SRC_DIR}/ccpi
+cp -r "${RECIPE_DIR}/../../../" ${SRC_DIR}/ccpi
+
+cd ${SRC_DIR}/ccpi/Wrappers/python
+$PYTHON setup.py install
diff --git a/recipes/python/meta.yaml b/recipes/python/meta.yaml
new file mode 100644
index 0000000..63a5a3a
--- /dev/null
+++ b/recipes/python/meta.yaml
@@ -0,0 +1,36 @@
+package:
+ name: ccpi-reconstruction
+ version: {{ environ['CIL_VERSION'] }}
+
+
+build:
+ preserve_egg_dir: False
+ script_env:
+ - CIL_VERSION
+# number: 0
+
+requirements:
+ build:
+ - python
+ - numpy
+ - setuptools
+ - boost ==1.64.0
+ - boost-cpp ==1.64.0
+ - cython
+ - libtiff
+ - cil_reconstruction
+
+ run:
+ - python
+ - numpy
+ - boost ==1.64
+ - libtiff
+ - h5py
+ - scipy
+ - cil_reconstruction
+
+
+about:
+ home: http://www.ccpi.ac.uk
+ license: BSD license
+ summary: 'CCPi Toolbox'