Skip to content

Commit 54a049e

Browse files
committed
pyproject.toml, setup.py: Only use numpy.distutils on win32
1 parent ea65d5f commit 54a049e

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,5 +1,5 @@
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"

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)