From 3e278fadb45d04610623d900738a65c540dadccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 27 Apr 2013 17:27:00 +0200 Subject: [PATCH] Add __all__ to graph package --- skimage/graph/__init__.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/skimage/graph/__init__.py b/skimage/graph/__init__.py index 9e2ac4e0..eb817c77 100644 --- a/skimage/graph/__init__.py +++ b/skimage/graph/__init__.py @@ -1,10 +1,7 @@ -try: - from .spath import shortest_path - from .mcp import MCP, MCP_Geometric, route_through_array -except ImportError: - print """*** The cython extensions have not been compiled. Run +from .spath import shortest_path +from .mcp import MCP, MCP_Geometric, route_through_array -python setup.py build_ext -i - -in the source directory to build in-place. Please refer to INSTALL.txt -for further detail.""" +__all__ = ['shortest_path', + 'MCP', + 'MCP_Geometric', + 'route_through_array'] \ No newline at end of file