Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion python/sdist/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
[build-system]
requires = ["setuptools>=40.6.3", "wheel", "numpy"]
requires = [
"setuptools>=40.6.3",
"wheel",
# We pin numpy here to the lowest supported version to have
# ABI-compatibility with the numpy version in the runtime environment.
# There seems to be no easy way to require the numpy version from the
# runtime environment for the build requirement here. The only alternative
# would be pinning the setup.py numpy requirement to the same version as
# here, which we want to avoid.
# cf. discussion at https://github.com/numpy/numpy/issues/5888
# These requirements are taken from the h5py package, we depend on.
"numpy==1.14.5; python_version=='3.7'",
"numpy==1.17.5; python_version=='3.8'",
"numpy==1.19.3; python_version>='3.9'",
]
build-backend = "setuptools.build_meta"
3 changes: 3 additions & 0 deletions python/sdist/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ package_dir =
python_requires = >=3.6
install_requires =
sympy>=1.7.1
numpy>=1.14.5; python_version=='3.7'
numpy>=1.17.5; python_version=='3.8'
numpy>=1.19.3; python_version>='3.9'
python-libsbml
h5py
pandas
Expand Down