diff options
-rw-r--r-- | Wrappers/Python/conda-recipe/build.sh | 5 | ||||
-rw-r--r-- | recipes/regularizers/build.sh | 28 |
2 files changed, 19 insertions, 14 deletions
diff --git a/Wrappers/Python/conda-recipe/build.sh b/Wrappers/Python/conda-recipe/build.sh index 855047f..aaf9a69 100644 --- a/Wrappers/Python/conda-recipe/build.sh +++ b/Wrappers/Python/conda-recipe/build.sh @@ -4,10 +4,13 @@ if [ -z "$CIL_VERSION" ]; then exit 1 fi mkdir "$SRC_DIR/ccpi" -cp -r "$RECIPE_DIR/../.." "$SRC_DIR/ccpi" +cp -rv "$RECIPE_DIR/../.." "$SRC_DIR/ccpi" +cp -rv "$RECIPE_DIR/../../../Core" "$SRC_DIR/Core" cd $SRC_DIR/ccpi/Python +echo "$SRC_DIR/ccpi/Python" + $PYTHON setup.py build_ext $PYTHON setup.py install diff --git a/recipes/regularizers/build.sh b/recipes/regularizers/build.sh index ab5474b..0b8bce2 100644 --- a/recipes/regularizers/build.sh +++ b/recipes/regularizers/build.sh @@ -1,17 +1,19 @@ #!/usr/bin/env bash -mkdir build -cd build +echo $CIL_VERSION +#if [ -z "$CIL_VERSION" ]; then +# echo "Need to set CIL_VERSION" +# exit 1 +#fi +#export CIL_VERSION=0.9.1 -#configure -BUILD_CONFIG=Release -echo `pwd` -cmake .. -G "Ninja" \ - -Wno-dev \ - -DCMAKE_BUILD_TYPE=$BUILD_CONFIG \ - -DCMAKE_PREFIX_PATH:PATH="${PREFIX}" \ - -DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \ - -DCMAKE_INSTALL_RPATH:PATH="${PREFIX}/lib" -# compile & install -ninja install + +mkdir ${SRC_DIR}/build +cp -rv ${RECIPE_DIR}/../../Core/ ${SRC_DIR}/build +mkdir ${SRC_DIR}/build/build +cd ${SRC_DIR}/build/build +cmake -G "Unix Makefiles" -DLIBRARY_LIB="${CONDA_PREFIX}/lib" -DLIBRARY_INC="${CONDA_PREFIX}" -DCMAKE_INSTALL_PREFIX="${PREFIX}" ../Core + +make -j2 VERBOSE=1 +make install |