From eb05312a20ff7788a4091d32fd3b06bcef873efb 2009-07-02 05:45:57 From: Brian Granger Date: 2009-07-02 05:45:57 Subject: [PATCH] Fixing the setup.py script under setuptools and the __init__.py script. --- diff --git a/IPython/__init__.py b/IPython/__init__.py index c509ad1..40d73bf 100644 --- a/IPython/__init__.py +++ b/IPython/__init__.py @@ -48,7 +48,7 @@ import os sys.path.append(os.path.dirname(__file__) + "/Extensions") # Define what gets imported with a 'from IPython import *' -__all__ = ['ipapi','generics','ipstruct','Release','Shell'] +__all__ = ['IPython.core.ipapi','utils.generics','utils.ipstruct','Release','Shell'] # Load __all__ in IPython namespace so that a simple 'import IPython' gives # access to them via IPython. diff --git a/setup.py b/setup.py index 1c905c4..46afbc8 100755 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST') from distutils.core import setup # Local imports -from IPython.genutils import target_update +from IPython.utils.genutils import target_update from setupbase import ( setup_args, @@ -143,7 +143,7 @@ if 'setuptools' in sys.modules: setuptools_extra_args['zip_safe'] = False setuptools_extra_args['entry_points'] = { 'console_scripts': [ - 'ipython = IPython.ipapi:launch_new_instance', + 'ipython = IPython.core.ipapi:launch_new_instance', 'pycolor = IPython.PyColorize:main', 'ipcontroller = IPython.kernel.scripts.ipcontroller:main', 'ipengine = IPython.kernel.scripts.ipengine:main',