diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2017-11-10 14:03:37 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-01-19 14:26:06 +0000 |
commit | d8da92d590fcab561b9e65ee57851e2e402f0cd4 (patch) | |
tree | 8ff25f41a7ea4a690235fe92f79c807615f0aef2 /Wrappers/Python/conda-recipe | |
parent | 2b11ca3f30580b814971fcad39110e0751161acb (diff) | |
download | regularization-d8da92d590fcab561b9e65ee57851e2e402f0cd4.tar.gz regularization-d8da92d590fcab561b9e65ee57851e2e402f0cd4.tar.bz2 regularization-d8da92d590fcab561b9e65ee57851e2e402f0cd4.tar.xz regularization-d8da92d590fcab561b9e65ee57851e2e402f0cd4.zip |
code refactoring step1
Diffstat (limited to 'Wrappers/Python/conda-recipe')
-rw-r--r-- | Wrappers/Python/conda-recipe/bld.bat | 14 | ||||
-rw-r--r-- | Wrappers/Python/conda-recipe/build.sh | 14 | ||||
-rw-r--r-- | Wrappers/Python/conda-recipe/meta.yaml | 30 |
3 files changed, 58 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..69491de --- /dev/null +++ b/Wrappers/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/Wrappers/Python/conda-recipe/build.sh b/Wrappers/Python/conda-recipe/build.sh new file mode 100644 index 0000000..855047f --- /dev/null +++ b/Wrappers/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/Wrappers/Python/conda-recipe/meta.yaml b/Wrappers/Python/conda-recipe/meta.yaml new file mode 100644 index 0000000..7068e9d --- /dev/null +++ b/Wrappers/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' |