Commit 11e04983 authored by Tiago Peixoto's avatar Tiago Peixoto

Force loading of numpy and scipy during import

Import numpy and scipy before everything to avoid weird segmentation
faults depending on the order things are imported.
parent 30ac60fb
......@@ -70,8 +70,6 @@ util
Utilities
---------
test
Run ``graph_tool`` unittests
show_config
Show ``graph_tool`` build configuration
__version__
......@@ -87,6 +85,13 @@ __copyright__="Copyright 2008 Tiago de Paula Peixoto"
__license__="GPL version 3 or above"
__URL__="http://graph-tool.forked.de"
# import numpy and scipy before everything to avoid weird segmentation faults
# depending on the order things are imported.
import numpy
import scipy
import scipy.stats
from . core import __version__, Graph, GraphError, Vector_bool, \
Vector_int32_t, Vector_int64_t, Vector_double, Vector_long_double,\
Vector_string, value_types, load_graph, PropertyMap, Vertex, Edge
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment