-
Notifications
You must be signed in to change notification settings - Fork 45
Run tests on conda build #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
roryyorke
merged 5 commits into
python-control:master
from
repagh:run-tests-on-conda-build
May 10, 2020
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0d9964e
Merge pull request #1 from python-control/master
repagh ed070ca
modify conda build recipes to perform the unit tests
repagh d0c4560
use pytest for running the tests
repagh 8e141ca
conda recipe fixes
repagh ee46807
force looking for and use of accelerate for apple
repagh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be taken care of by #110
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slycot/conda-recipe-apple/meta.yaml
Line 10 in 1bf49c1
I cannot use the "suggest change" feature for this one, but the
_mkl_infix needs to be changed here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test does not seem to run from the source folder, conda arranges for a temporary folder for the test.
pytestneeds the--pyargs slycothere. As I understand it from the documentation, this effectively loads and searches the newly builtslycotas installed in the test environment and runs its tests.This is also a nice way to ensure that an installed slycot is still intact.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I also implemented the
_mkl_->_obl_changeJust now saw your comment in work on readme.rst. I chose to now explicitly put openblas in there (my machine did that automatically?), and since there apparently also exists an optimized apple blas somewhere, I think we needs to reserve
_apple_for that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re pytest: Sounds fair.
Why back to openblas and not apple system provided? Could this be merged with the openblas recipe dir again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I now got it to build & tests worked with Apple/Accelerate. Had to force the blas vendor for this with
-DBLA_VENDOR=Apple.