Skip to content

Commit

Permalink
Merge pull request #112 from mkoeppe/use_numpy_distutils_only_for_win32
Browse files Browse the repository at this point in the history
pyproject.toml, setup.py: Only use numpy.distutils on win32
  • Loading branch information
oscarbenjamin committed Jan 25, 2024
2 parents 99b0696 + 54a049e commit 1ae8ebf
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,6 +1,6 @@
[build-system]
requires = ["setuptools",
"numpy",
"numpy; sys_platform == 'win32' and python_version < '3.12'",
"Cython>=3"]
build-backend = "setuptools.build_meta"

Expand Down
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' and sys.version_info < (3, 12):
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 1ae8ebf

Please sign in to comment.