[IPython-dev] %install_ext question

Thomas Kluyver takowl@gmail....
Wed Apr 10 11:12:53 CDT 2013

On 10 April 2013 16:15, Greg Novak <greg.novak@gmail.com> wrote:

> Well, it worked for me to import code from the zip file, as long as the
> zip file itself is on sys.path, ie, sys.path += ['/path/to/module-name.zip']

Yep, sorry, I should have made that clearer. You can import *from* a zip,
but you can't use the zip file itself as an importable package.

> So it seems to me the three options are:
> 1) Specify that single python files can be installed via install_ext,
> otherwise use pip.  This is fine, pip is easy to use.
> 2) Allow install_ext to point to zip files and have install_ext unzip the
> module into the extensions directory
> 3) Allow install_ext to point to zip files and modify the config file so
> that sys.path is modified to contain the zip file itself on startup
> thereafter.

We might go for 2, but I'm wary of creating another package installer and
adding to the Python Packaging Mess. For now, we know 1 works.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130410/3ecde1eb/attachment.html 

More information about the IPython-dev mailing list