-
Notifications
You must be signed in to change notification settings - Fork 45
Scikit buildsystem #38
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
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8c528a3
Using scikit-build as buildsystem
repagh b3168f4
Using scikit-build as buildsystem
repagh e6af8a7
Merge branch 'scikit-buildsystem' of https://github.com/repagh/Slycot…
repagh aba817d
build command modifications for .travis.yml
repagh 3d12649
- For travis, do not re-build through runtest.py
repagh adc13d7
- do not run tests from Slycot dir
repagh 9d435d4
- since scikit-build is now in conda-forge, could remove the hack
repagh 13b3fe6
- explicitly selecting CMAKE_GENERATOR="Unix Makefiles"
repagh 2313855
Added information on scikit-build and cmake build dependency on READM…
repagh a5d0d78
Update Miniconda URL from Conda docs.
roryyorke 75d6867
Update conda-recipe-openblas/bld.bat
roryyorke 1d686b7
RoryYorke's build fix on .travis.yml
repagh 32d85a1
Merge branch 'scikit-buildsystem' of https://github.com/repagh/Slycot…
repagh c05a78f
Merge pull request #2 from roryyorke/rory/scikit-buildsystem-travis-py27
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
Using scikit-build as buildsystem
- Loading branch information
commit b3168f477708cc5a65af185c5294f4d924f7d03e
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
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 |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # CMake file for use in conjunction with scikit-build | ||
|
|
||
| cmake_minimum_required(VERSION 3.4.0) | ||
|
|
||
| if (CMAKE_VERSION VERSION_GREATER "3.11.0") | ||
| cmake_policy(SET CMP0074 NEW) | ||
| endif() | ||
|
|
||
| project(slycot VERSION ${SLYCOT_VERSION}) | ||
|
|
||
| # Fortran detection fails on windows, use the CMAKE_C_SIMULATE flag to | ||
| # force success | ||
| if(WIN32) | ||
| set(CMAKE_Fortran_SIMULATE_VERSION 19.0) | ||
| # set(CMAKE_Fortran_COMPILER_FORCED TRUE) | ||
| # set(CMAKE_C_COMPILER_VERSION 19.0) | ||
| endif() | ||
|
|
||
| enable_language(C) | ||
| enable_language(Fortran) | ||
|
|
||
| find_package(PythonLibs REQUIRED) | ||
| find_package(NumPy REQUIRED) | ||
| #set(BLA_VENDOR "OpenBLAS") | ||
| find_package(LAPACK REQUIRED) | ||
| message(STATUS "LAPACK: ${LAPACK_LIBRARIES}") | ||
| message(STATUS "Slycot version: ${SLYCOT_VERSION}") | ||
|
|
||
| # find python, standard packages, F2PY find flaky on Windows | ||
| if (NOT WIN32) | ||
| find_package(F2PY REQUIRED) | ||
| endif() | ||
|
|
||
| # pic option for flang not correct, remove for Windows | ||
| if (WIN32) | ||
| set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "") | ||
| endif() | ||
|
|
||
| # base site dir, use python installation for location specific includes | ||
| execute_process( | ||
| COMMAND "${PYTHON_EXECUTABLE}" -c | ||
| "from distutils.sysconfig import get_python_lib as pl; print(pl())" | ||
| OUTPUT_VARIABLE PYTHON_SITE | ||
| OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
| if(WIN32) | ||
| string(REPLACE "\\" "/" PYTHON_SITE ${PYTHON_SITE}) | ||
| endif() | ||
|
|
||
| add_subdirectory(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
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,2 +1,22 @@ | ||
|
|
||
| cd $RECIPE_DIR/.. | ||
| # HACK, until scikit-build is updated to 0.7.1 or higher ... | ||
| $PYTHON -m pip install \ | ||
| https://github.com/scikit-build/scikit-build/archive/0.7.1.zip | ||
|
|
||
| env | ||
|
|
||
| # specify where CMAKE will search for lapack and blas | ||
| # needs recent cmake (conda's 3.12) and policy CMP0074 NEW | ||
| export BLAS_ROOT=${CONDA_PREFIX} | ||
| export LAPACK_ROOT=${CONDA_PREFIX} | ||
|
|
||
| $PYTHON setup.py install | ||
|
|
||
| # same HACK, remove again | ||
| $PYTHON -m pip uninstall --yes scikit-build | ||
| $PYTHON -m pip uninstall --yes packaging | ||
| $PYTHON -m pip uninstall --yes pyparsing | ||
| $PYTHON -m pip uninstall --yes setuptools | ||
| $PYTHON -m pip uninstall --yes six | ||
| $PYTHON -m pip uninstall --yes wheel |
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
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,3 +1,7 @@ | ||
| cd $RECIPE_DIR/.. | ||
| export LAPACKLIBS=lapack:blas | ||
| # HACK, until scikit-build is updated to 0.7.1 or higher ... | ||
| $PYTHON -m pip install \ | ||
| https://github.com/scikit-build/scikit-build/archive/0.7.1.zip | ||
| $PYTHON setup.py install | ||
| # same HACK | ||
| $PYTHON -m pip uninstall --yes scikit-build |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.