<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 10 April 2013 16:15, Greg Novak <span dir="ltr"><<a href="mailto:greg.novak@gmail.com" target="_blank">greg.novak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>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']</div></blockquote><div><br></div><div>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.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
</div><div>So it seems to me the three options are:</div><div>1) Specify that single python files can be installed via install_ext, otherwise use pip. This is fine, pip is easy to use.</div><div>2) Allow install_ext to point to zip files and have install_ext unzip the module into the extensions directory</div>
<div>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.</div></blockquote></div><br></div><div class="gmail_extra">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.<br>
<br>Thomas<br></div></div>