Skip to content

Commit

Permalink
set minimum required numpy version to one with 3.8 wheels.
Browse files Browse the repository at this point in the history
* fix lints
  • Loading branch information
mgeplf committed Jul 10, 2023
1 parent 643c551 commit a9de94b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import inspect
import os
import platform
import re
import subprocess
import sys

from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion


MIN_CPU_CORES = 2
Expand Down Expand Up @@ -42,7 +38,7 @@ def initialize_options(self):

def run(self):
try:
out = subprocess.check_output(["cmake", "--version"])
subprocess.check_output(["cmake", "--version"])
except OSError:
raise RuntimeError(
"CMake must be installed to build the following extensions: "
Expand Down Expand Up @@ -96,11 +92,8 @@ def build_extension(self, ext):
# nearly verbatim from how h5py handles is
install_requires = [
# We only really aim to support NumPy & Python combinations for which
# there are wheels on PyPI (e.g. NumPy >=1.17.5 for Python 3.8).
# But we don't want to duplicate the information in oldest-supported-numpy
# here, and if you can build an older NumPy on a newer Python
# NumPy 1.14.5 is the first with wheels for Python 3.7, our minimum Python.
"numpy >=1.14.5",
# there are wheels on PyPI (e.g. NumPy >=1.17.3 for Python 3.8).
"numpy>=1.17.3",
]

setup_requires = [
Expand Down

0 comments on commit a9de94b

Please sign in to comment.