Skip to content

Commit 1ae8ebf

Browse files
Merge pull request #112 from mkoeppe/use_numpy_distutils_only_for_win32
pyproject.toml, setup.py: Only use numpy.distutils on win32
2 parents 99b0696 + 54a049e commit 1ae8ebf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = ["setuptools",
3-
"numpy",
3+
"numpy; sys_platform == 'win32' and python_version < '3.12'",
44
"Cython>=3"]
55
build-backend = "setuptools.build_meta"
66

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from Cython.Build import cythonize
77

88

9-
if sys.version_info < (3, 12):
9+
if sys.platform == 'win32' and sys.version_info < (3, 12):
1010
from distutils.core import setup
1111
from distutils.extension import Extension
1212
from numpy.distutils.system_info import default_include_dirs, default_lib_dirs

0 commit comments

Comments
 (0)