summaryrefslogtreecommitdiffstats
path: root/src/Python/conda-recipe
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2017-10-26 15:29:16 +0100
committeralgol <dkazanc@hotmail.com>2017-10-26 15:29:16 +0100
commite6349ed946772ee25a2f3ea1eba03e4c77e4f75e (patch)
tree47dd09cac6b16c2dff2ae874538c3ea64281876f /src/Python/conda-recipe
parenta4ee6ded8036fa1a10ef860478f49d2eb2cd11e0 (diff)
parented7dd1150261eddbc8dc5cea9b46ced884d5a884 (diff)
downloadregularization-e6349ed946772ee25a2f3ea1eba03e4c77e4f75e.tar.gz
regularization-e6349ed946772ee25a2f3ea1eba03e4c77e4f75e.tar.bz2
regularization-e6349ed946772ee25a2f3ea1eba03e4c77e4f75e.tar.xz
regularization-e6349ed946772ee25a2f3ea1eba03e4c77e4f75e.zip
Merge branch 'master' of https://github.com/vais-ral/CCPi-FISTA_Reconstruction
Diffstat (limited to 'src/Python/conda-recipe')
-rw-r--r--src/Python/conda-recipe/bld.bat14
-rw-r--r--src/Python/conda-recipe/build.sh14
-rw-r--r--src/Python/conda-recipe/meta.yaml30
3 files changed, 58 insertions, 0 deletions
diff --git a/src/Python/conda-recipe/bld.bat b/src/Python/conda-recipe/bld.bat
new file mode 100644
index 0000000..69491de
--- /dev/null
+++ b/src/Python/conda-recipe/bld.bat
@@ -0,0 +1,14 @@
+IF NOT DEFINED CIL_VERSION (
+ECHO CIL_VERSION Not Defined.
+exit 1
+)
+
+mkdir "%SRC_DIR%\ccpi"
+xcopy /e "%RECIPE_DIR%\..\.." "%SRC_DIR%\ccpi"
+
+cd %SRC_DIR%\ccpi\Python
+
+%PYTHON% setup.py build_ext
+if errorlevel 1 exit 1
+%PYTHON% setup.py install
+if errorlevel 1 exit 1
diff --git a/src/Python/conda-recipe/build.sh b/src/Python/conda-recipe/build.sh
new file mode 100644
index 0000000..855047f
--- /dev/null
+++ b/src/Python/conda-recipe/build.sh
@@ -0,0 +1,14 @@
+
+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/Python
+
+$PYTHON setup.py build_ext
+$PYTHON setup.py install
+
+
diff --git a/src/Python/conda-recipe/meta.yaml b/src/Python/conda-recipe/meta.yaml
new file mode 100644
index 0000000..7068e9d
--- /dev/null
+++ b/src/Python/conda-recipe/meta.yaml
@@ -0,0 +1,30 @@
+package:
+ name: ccpi-regularizers
+ version: {{ environ['CIL_VERSION'] }}
+
+
+build:
+ preserve_egg_dir: False
+ script_env:
+ - CIL_VERSION
+# number: 0
+
+requirements:
+ build:
+ - python
+ - numpy
+ - setuptools
+ - boost ==1.64
+ - boost-cpp ==1.64
+ - cython
+
+ run:
+ - python
+ - numpy
+ - boost ==1.64
+
+
+about:
+ home: http://www.ccpi.ac.uk
+ license: BSD license
+ summary: 'CCPi Core Imaging Library Quantification Toolbox'