This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More restructuring and progress getting the scikit-build setup working.
- Loading branch information
MintoDA1
authored and
MintoDA1
committed
Aug 8, 2023
1 parent
447eaaf
commit 6918164
Showing
8 changed files
with
103 additions
and
31 deletions.
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
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,8 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools>=42", | ||
| "scikit-build>=0.13", | ||
| "cmake>=3.20.1", | ||
| "ninja", | ||
| ] | ||
| build-backend = "setuptools.build_meta" |
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,15 @@ | ||
| python>=3.8 | ||
| numpy>=1.24.3 | ||
| pandas>=1.5.3 | ||
| scipy>=1.10.1 | ||
| xarray>=2022.11.0 | ||
| dask>=2022.1 | ||
| bottleneck>=1.3.5 | ||
| h5netcdf>=1.0.2 | ||
| netcdf4>=1.6.2 | ||
| matplotlib>=3.7.1 | ||
| astropy>=5.1 | ||
| astroquery>=0.4.6 | ||
| tqdm>=4.65.0 | ||
| x264>=1!157.20191217 | ||
| ffmpeg>=4.3.2 |
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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Use the old method to get Python packages, as that's what scikit-build uses | ||
| CMAKE_POLICY(SET CMP0148 OLD) | ||
| FIND_PACKAGE(PythonInterp REQUIRED) | ||
| FIND_PACKAGE(Cython REQUIRED) | ||
| FIND_PACKAGE(PythonExtensions REQUIRED) | ||
|
|
||
| # Avoid Cython/Python3.8 minor incompatibility warnings, see | ||
| # https://github.com/cython/cython/issues/3474. Note that this option is a bit | ||
| # expansive, but it's a temporary fix and we'll be testing on other Python | ||
| # versions concurrently so it shouldn't hide any real issues. ). | ||
| IF(${PYTHON_VERSION_MAJOR} EQUAL 3 | ||
| AND ${PYTHON_VERSION_MINOR} EQUAL 8 | ||
| AND NOT WIN32) | ||
| ADD_COMPILE_OPTIONS("-Wno-deprecated-declarations") | ||
| ENDIF() | ||
|
|
||
|
|
||
| # Detect when building against a conda environment set the _using_conda variable | ||
| # for use both in this file and in the parent | ||
| GET_FILENAME_COMPONENT(_python_bin_dir ${PYTHON_EXECUTABLE} DIRECTORY) | ||
| IF(EXISTS "${_python_bin_dir}/../conda-meta") | ||
| MESSAGE("-- Detected conda environment, setting INSTALL_RPATH_USE_LINK_PATH") | ||
| SET(_using_conda On) | ||
| SET(_using_conda On PARENT_SCOPE) | ||
| ELSE() | ||
| SET(_using_conda Off) | ||
| SET(_using_conda Off PARENT_SCOPE) | ||
| ENDIF() | ||
|
|
||
| SET(SWIFTEST_BINDINGS swiftest_bindings) | ||
|
|
||
| INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) | ||
| ADD_CYTHON_TARGET(${SWIFTEST_BINDINGS} bindings.pyx) | ||
| ADD_LIBRARY(${SWIFTEST_BINDINGS} MODULE ${SWIFTEST_BINDINGS}) | ||
| TARGET_LINK_LIBRARIES(${SWIFTEST_BINDINGS} ${SWIFTEST_LIBRARY} ${SWIFTEST_LIBRARY} ${NETCDF_FORTRAN_LIBRARIES} ${NETCDF_LIBRARIES} $ENV{LIBS}) | ||
| PYTHON_EXTENSION_MODULE(${SWIFTEST_BINDINGS}) | ||
| INSTALL(TARGETS ${SWIFTEST_BINDINGS} LIBRARY DESTINATION ${PY}) |
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