Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/src/sage_setup/extensions.py
4052 views
1
2
def create_extension(template, kwds):
3
from Cython.Build.Dependencies import default_create_extension
4
from sage.env import sage_include_directories
5
6
# Add numpy and source folder to the include search path used by the compiler
7
# This is a workaround for https://github.com/cython/cython/issues/1480
8
include_dirs = kwds.get('include_dirs', []) + sage_include_directories(use_sources=True)
9
kwds['include_dirs'] = include_dirs
10
return default_create_extension(template, kwds)
11
12