Repository navigation
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 1 commit
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
modify conda build recipes to perform the unit tests
- Loading branch information
commit ed070cabd77f4845f1aa9354f303faa2012574fe
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,15 @@ | ||
| 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} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,13 +14,14 @@ requirements: | |
| - {{ compiler('c') }} | ||
| - {{ compiler('fortran') }} # [unix] | ||
| - flang # [win] | ||
| - cmake | ||
| - numpy | ||
|
|
||
| host: | ||
| - numpy | ||
| - mkl | ||
| - python | ||
| - scikit-build | ||
| - pip | ||
|
|
||
| run: | ||
| - python {{ PY_VER }} | ||
|
|
@@ -30,6 +31,9 @@ requirements: | |
| test: | ||
| imports: | ||
| - slycot | ||
| commands: | ||
| - conda install nose pytest scipy parameterized --yes --quiet | ||
| - python -c "from slycot import test; test()" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you install pytest, why not run pytest?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup. Will convert to pytest and a "Requires:" section. Thanks for the suggestions. |
||
|
|
||
| about: | ||
| home: https://github.com/python-control/Slycot | ||
|
|
||
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.
Do we still need
noseandpytest?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.
Also, isn't there a
requiressubsection for thetestsection (e.g., https://github.com/conda-forge/slycot-feedstock/blob/10ef9af7b10ce29ef7ba6e370ea6e0e5a1021b52/recipe/meta.yaml#L38)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.
no only pytest
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.
good idea, I was looking for that requires section....
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.
Yes, I like the conda recipes, as a step up to the feedstock. I use them both on osx and Linux.