Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
sage.env.sage_include_directories: Do not append distutils.sysconfig.…
Browse files Browse the repository at this point in the history
…get_python_inc()
  • Loading branch information
Matthias Koeppe committed Sep 26, 2022
1 parent 4541564 commit 9a77a81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,9 @@ def sage_include_directories(use_sources=False):
sage: any(os.path.isfile(os.path.join(d, file)) for d in dirs)
True
"""
import distutils.sysconfig

TOP = SAGE_SRC if use_sources else SAGE_LIB

dirs = [TOP,
distutils.sysconfig.get_python_inc()]
dirs = [TOP]
try:
import numpy
dirs.insert(1, numpy.get_include())
Expand Down

0 comments on commit 9a77a81

Please sign in to comment.