A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030873.html below:

[Python-Dev] Another approach for the import mechanism

[Python-Dev] Another approach for the import mechanism [Python-Dev] Another approach for the import mechanismMartin v. Löwis martin@v.loewis.de
06 Dec 2002 07:28:12 +0100
Gustavo Niemeyer <niemeyer@conectiva.com> writes:

> That would kill the __init__.py that could be inside package.zip,
> right? One could leave package.zip's __init__.py outside it, and
> hack it as shown above, but it'd be great if this scheme was just
> an option for setup.py (--compress-packages). Otherwise the scheme
> must be prepared by the developer, not by the packager.

You can easily put an entire package into a .zip file, as the
packager: Just provide a .zip file with the entire package contents
(and file names starting with the package dir inside the zip file);
then provide a .pth file to add the zipfile to sys.path.

Regards,
Martin




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4