We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea65d5f commit 54a049eCopy full SHA for 54a049e
pyproject.toml
@@ -1,5 +1,5 @@
1
[build-system]
2
requires = ["setuptools",
3
- "numpy",
+ "numpy; sys_platform == 'win32' and python_version < '3.12'",
4
"Cython>=3"]
5
build-backend = "setuptools.build_meta"
setup.py
@@ -6,7 +6,7 @@
6
from Cython.Build import cythonize
7
8
9
-if sys.version_info < (3, 12):
+if sys.platform == 'win32' and sys.version_info < (3, 12):
10
from distutils.core import setup
11
from distutils.extension import Extension
12
from numpy.distutils.system_info import default_include_dirs, default_lib_dirs
0 commit comments