Skip to content

Commit

Permalink
pyproject.toml, setup.py: Only use numpy.distutils on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jan 25, 2024
1 parent ea65d5f commit a23aae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools",
"numpy",
"numpy; sys_platform == 'win32'",
"Cython>=3"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from Cython.Build import cythonize


if sys.version_info < (3, 12):
if sys.platform == 'win32':
from distutils.core import setup
from distutils.extension import Extension
from numpy.distutils.system_info import default_include_dirs, default_lib_dirs
Expand Down

0 comments on commit a23aae5

Please sign in to comment.