Skip to content

Commit 9568859

Browse files
committed
Remove numpy from get_include_dirs
1 parent eb346cf commit 9568859

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/sage/config.py.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# @configure_input@
22
from pathlib import Path
33

4-
import numpy
5-
64
import sage
75

86
VERSION = "@PACKAGE_VERSION@"
@@ -130,9 +128,6 @@ def get_include_dirs() -> list[Path]:
130128
Headers should be included with the prefix "sage/", e.g.,
131129
``#include <sage/cpython/cython_metaclass.h>``.
132130

133-
This includes the path to the Numpy headers as well to make it
134-
easier to compile Cython extensions that (indirectly) depend on Numpy.
135-
136131
EXAMPLES::
137132

138133
sage: from sage.config import get_include_dirs
@@ -151,5 +146,4 @@ def get_include_dirs() -> list[Path]:
151146
# We return both the source and build directory,
152147
# because some headers are generated in the build directory.
153148
dirs.extend([root / "src" for root in editable_root])
154-
dirs.append(Path(numpy.get_include()))
155149
return [dir for dir in dirs if dir.is_dir()]

0 commit comments

Comments
 (0)