summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/conda-recipe
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-04-11 16:18:20 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2018-04-11 16:18:20 +0100
commitee0a3bf634e92351ad82c09b4e94bcb64ee52d73 (patch)
tree246466b22b14f20e46df2d50104f72e23cb2b782 /Wrappers/Python/conda-recipe
parenta371b63586e0d0b0b4b13b7b3038e0d0cacbe0ca (diff)
downloadframework-plugins-ee0a3bf634e92351ad82c09b4e94bcb64ee52d73.tar.gz
framework-plugins-ee0a3bf634e92351ad82c09b4e94bcb64ee52d73.tar.bz2
framework-plugins-ee0a3bf634e92351ad82c09b4e94bcb64ee52d73.tar.xz
framework-plugins-ee0a3bf634e92351ad82c09b4e94bcb64ee52d73.zip
initial working release with simple_demo_ccpi.py
Diffstat (limited to 'Wrappers/Python/conda-recipe')
-rw-r--r--Wrappers/Python/conda-recipe/bld.bat10
-rw-r--r--Wrappers/Python/conda-recipe/build.sh9
-rw-r--r--Wrappers/Python/conda-recipe/meta.yaml27
3 files changed, 46 insertions, 0 deletions
diff --git a/Wrappers/Python/conda-recipe/bld.bat b/Wrappers/Python/conda-recipe/bld.bat
new file mode 100644
index 0000000..4b4c7f5
--- /dev/null
+++ b/Wrappers/Python/conda-recipe/bld.bat
@@ -0,0 +1,10 @@
+IF NOT DEFINED CIL_VERSION (
+ECHO CIL_VERSION Not Defined.
+exit 1
+)
+
+ROBOCOPY /E "%RECIPE_DIR%\.." "%SRC_DIR%"
+
+%PYTHON% setup.py build_py
+%PYTHON% setup.py install
+if errorlevel 1 exit 1
diff --git a/Wrappers/Python/conda-recipe/build.sh b/Wrappers/Python/conda-recipe/build.sh
new file mode 100644
index 0000000..5dd97b0
--- /dev/null
+++ b/Wrappers/Python/conda-recipe/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/Wrappers/Python/conda-recipe/meta.yaml b/Wrappers/Python/conda-recipe/meta.yaml
new file mode 100644
index 0000000..f97de5e
--- /dev/null
+++ b/Wrappers/Python/conda-recipe/meta.yaml
@@ -0,0 +1,27 @@
+package:
+ name: ccpi-plugins
+ version: {{ environ['CIL_VERSION'] }}
+
+
+build:
+ preserve_egg_dir: False
+ script_env:
+ - CIL_VERSION
+# number: 0
+
+requirements:
+ build:
+ - python
+ - setuptools
+
+ run:
+ - python
+ - numpy
+ - ccpi-framework
+ - ccpi-reconstruction
+ - matplotlib
+
+about:
+ home: http://www.ccpi.ac.uk
+ license: Apache 2.0 License
+ summary: 'CCPi Framework Plugins'