[Python-Dev] PEP 382: Namespace Packages (original) (raw)

Matthias Klose doko at ubuntu.com
Fri Apr 3 03:21:10 CEST 2009


Martin v. Löwis schrieb:

I propose the following PEP for inclusion to Python 3.1. Please comment.

Regards, Martin Abstract ======== Namespace packages are a mechanism for splitting a single Python package across multiple directories on disk. In current Python versions, an algorithm to compute the packages path must be formulated. With the enhancement proposed here, the import machinery itself will construct the list of directories that make up the package.

+1

speaking as a downstream packaging python for Debian/Ubuntu I welcome this approach. The current practice of shipping the very same file (init.py) in different packages leads to conflicts for the installation of these packages (this is not specific to dpkg, but is true for rpm packaging as well).

Current practice of packaging (for downstreams) so called "name space packages" is:

Following this proposal (downstream) packaging of namespace packages is made possible independent of any manual downstream packaging decisions or any downstream specific packaging decisions.

Matthias



More information about the Python-Dev mailing list