We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe10e07 commit e06e19bCopy full SHA for e06e19b
2 files changed
pyproject.toml
@@ -1,5 +1,5 @@
1
[build-system]
2
-requires = ["setuptools"]
+requires = ["setuptools", "numpy"]
3
build-backend = "setuptools.build_meta"
4
5
[project]
setup.py
@@ -1,3 +1,16 @@
from setuptools import setup
+from setuptools.command.build_ext import build_ext
-setup()
+
+class build_ext_with_numpy(build_ext):
6
+ def build_extensions(self):
7
+ import numpy
8
9
+ numpy_include = numpy.get_include()
10
+ for ext in self.extensions:
11
+ ext.include_dirs.append(numpy_include)
12
13
+ super().build_extensions()
14
15
16
+setup(cmdclass={"build_ext": build_ext_with_numpy})
0 commit comments