[Distutils] Sooner or later, we're going to have to be more formal about how we name packages.

Jim Fulton jim at zope.com
Mon Jun 3 12:08:01 CEST 2013


On Mon, Jun 3, 2013 at 3:35 AM, holger krekel <holger at merlinux.eu> wrote:
> On Sun, Jun 02, 2013 at 13:51 -0400, Tres Seaver wrote:
>> On 06/02/2013 03:10 AM, holger krekel wrote:
>> > Somewhat proper import namespacing is only available with very recent
>> > python versions which still have a long way to become mainstream.
>>
>> I don't understand this claim at all.  W'eve had packages in python for
>> fifteen years, and extensible namespace-package support in one form or
>> another for eight.  The fact that the Python 3.3 adds support for a new
>> spelling doesn't mean they are a new feature.
>
> I stand corrected.  To be honest, i didn't consider the setuptools
> extensible namespace support a proper solution but indeed it exists
> and is used.

Before the setuptools namespace support, there was the pkgutil
module in the standard library.  Setuptools' system only added
support for zipped packages.

Python's current package system allows you to manipulate a package's
path, used to find modules and sub-packages in the package.
The Zope project used this mechanism for years support the Zope
"Products" namespace package.  The pkgutils module, and later
setuptools' mechanism just simplified this.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton


More information about the Distutils-SIG mailing list