-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from repagh/run-tests-on-conda-build
Run tests on conda build
- Loading branch information
Showing
6 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
cd $RECIPE_DIR/.. | ||
|
||
# ensure we are not building with old cmake files | ||
rm -rf _skbuild | ||
rm -rf _cmake_test_compile | ||
|
||
export LDFLAGS="$LDFLAGS -v" | ||
if [[ "$target_platform" == osx-64 ]]; then | ||
export LDFLAGS="${LDFLAGS} -isysroot ${CONDA_BUILD_SYSROOT}" | ||
export CFLAGS="${CFLAGS} -isysroot ${CONDA_BUILD_SYSROOT}" | ||
fi | ||
$PYTHON setup.py build_ext install -- -DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT} | ||
|
||
$PYTHON setup.py build_ext install -- \ | ||
-DNumPy_INCLUDE_DIR=${SP_DIR}/numpy/core/include \ | ||
-DCMAKE_OSX_SYSROOT=${CONDA_BUILD_SYSROOT} \ | ||
-DBLA_VENDOR=Apple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
cd $RECIPE_DIR/.. | ||
|
||
# specify blas vendor should be MKL | ||
export BLA_VENDOR=Intel10_64lp | ||
|
||
# ensure we are not building with old cmake files | ||
rm -rf _skbuild | ||
rm -rf _cmake_test_compile | ||
|
||
# do the build | ||
$PYTHON -m pip install . --no-deps --ignore-installed -vv | ||
$PYTHON setup.py build_ext -lmkl install -- \ | ||
-DNumPy_INCLUDE_DIR=${SP_DIR}/numpy/core/include \ | ||
-DBLA_VENDOR=Intel10_64lp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
cd $RECIPE_DIR/.. | ||
|
||
# specify blas vendor should be OpenBLAS | ||
export BLA_VENDOR=OpenBLAS | ||
|
||
# ensure we are not building with old cmake files | ||
rm -rf _skbuild | ||
rm -rf _cmake_test_compile | ||
|
||
# do the build | ||
$PYTHON -m pip install . --no-deps --ignore-installed -vv | ||
$PYTHON setup.py build_ext install -- \ | ||
-DNumPy_INCLUDE_DIR=${SP_DIR}/numpy/core/include \ | ||
-DBLA_VENDOR=OpenBLAS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters