Skip to content

Commit

Permalink
MAINT: Update setup to reflect correct requirements
Browse files Browse the repository at this point in the history
Only list NumPy as an install requirement
  • Loading branch information
bashtage committed Oct 12, 2021
1 parent 0d44256 commit 206a53d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[build-system]
requires = [
"packaging==20.5; platform_machine=='arm64'", # macos M1
"packaging>=21.0; platform_machine=='arm64'",
"setuptools",
"wheel",
"Cython>=0.29.22,<3.0", # Note: keep in sync with tools/cythonize.py
"Cython>=0.29.24,<3.0",
"numpy==1.16.6; python_version<='3.7'",
"numpy==1.17.5; python_version=='3.8'",
"numpy==1.19.5; python_version=='3.9'",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.14
cython>=0.29.22
cython>=0.29.24
setuptools
wheel
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
raise ImportError("tempita required to install, use pip install tempita")

with open("requirements.txt") as f:
required = f.read().splitlines()
setup_required = f.read().splitlines()
install_required = [pkg for pkg in setup_required if "numpy" in pkg]

CYTHON_COVERAGE = os.environ.get("RANDOMGEN_CYTHON_COVERAGE", "0") in (
"true",
Expand Down Expand Up @@ -384,6 +385,7 @@ def is_pure(self):
"RDRAND",
],
zip_safe=False,
install_requires=required,
install_requires=install_required,
setup_requires=setup_required,
python_requires=">=3.6",
)

0 comments on commit 206a53d

Please sign in to comment.