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 Jul 2, 2022
1 parent f8df808 commit 824e9fa
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 @@ -375,12 +375,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 824e9fa

Please sign in to comment.