This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 18
18
from sage_setup .find import find_extra_files
19
19
from sage_setup .library_order import library_order
20
20
21
- from sage .env import (cython_aliases , sage_include_directories )
22
-
23
21
# Do not put all, but only the most common libraries and their headers
24
22
# (that are likely to change on an upgrade) here:
25
23
# [At least at the moment. Make sure the headers aren't copied with "-p",
57
55
if subprocess .call ("""$CC --version | grep -i 'gcc.* 4[.]8' >/dev/null """ , shell = True ) == 0 :
58
56
extra_compile_args .append ('-fno-tree-copyrename' )
59
57
60
- # Search for dependencies in the source tree and add to the list of include directories
61
- include_dirs = sage_include_directories (use_sources = True )
58
+ try :
59
+ from sage .env import (cython_aliases , sage_include_directories )
60
+ # Search for dependencies in the source tree and add to the list of include directories
61
+ include_dirs = sage_include_directories (use_sources = True )
62
+ except ModuleNotFoundError :
63
+ cython_aliases = {}
64
+ sage_include_directories = []
62
65
63
66
# Look for libraries only in what is configured already through distutils
64
67
# and environment variables
You can’t perform that action at this time.
0 commit comments