()
Returns the folder that contains the C API headers of the Python
    interface of igraph.
Returns the folder that contains the C API headers of the Python
    interface of igraph.
Returns the folder that contains the C API headers of the Python interface of igraph .
def get_include():
    """Returns the folder that contains the C API headers of the Python
    interface of igraph."""
    import igraph

    paths = [
        # The following path works if igraph is installed already
        os.path.join(
            sys.prefix,
            "include",
            "python{0}.{1}".format(*sys.version_info),
            "igraph",
        ),
        # Fallback for cases when igraph is not installed but
        # imported directly from the source tree
        os.path.join(os.path.dirname(igraph.__file__), "..", "src", "_igraph"),
    ]
    for path in paths:
        if os.path.exists(os.path.join(path, "igraphmodule_api.h")):
            return os.path.abspath(path)
    raise ValueError("cannot find the header files of the Python interface of igraph")
def get_include ( ) : import igraph paths = [ # The following path works if igraph is installed already os . path . join ( sys . prefix , "include" , "python{0}.{1}" . format ( * sys . version_info ) , "igraph" , ) , # Fallback for cases when igraph is not installed but # imported directly from the source tree os . path . join ( os . path . dirname ( igraph . __file__ ) , ".." , "src" , "_igraph" ) , ] for path in paths : if os . path . exists ( os . path . join ( path , "igraphmodule_api.h" ) ) : return os . path . abspath ( path ) raise ValueError ( "cannot find the header files of the Python interface of igraph" )