[Distutils] PEP 376 APIs reworked (was: Re: PEP 376 comments)

Tarek Ziadé ziade.tarek at gmail.com
Thu Jun 11 14:58:34 CEST 2009

I've reworked the APIs using all the feedback:

- now using basic types (dict + set) to make the code simpler
- renamed the classes using the "Distribution" root name
- the global functions are also now sys.path-based and there's no more
global variable
- egg_info -> egginfo
- ...

Please comment !

On Tue, Jun 9, 2009 at 12:07 AM, Kevin Teague<kevin at bud.ca> wrote:
> Glancing over the EggInfo, EggInfoDirectories, and EggInfoDirectory
> APIs, it might be interesting if these were able to match with the PEP
> 3119 interfaces (http://www.python.org/dev/peps/pep-3119/).
> For example, the EggInfoDirectories has __iter__, append, clear and
> remove methods, but the source code comments list them as 'container
> APIs'. Technically though, that's an Iterable interface and a partial
> implementation of the MutableSequence interface.
> The EggInfoDirectories.get_egg_infos(project_name) is also suggestive
> of the Mapping interface - if this method was shortened from
> get_egg_infos() to just get().
> Maybe it would be confusing if an EggInfoDirectories was a
> MutableSequence which could only have paths added to it, but returned
> an iterable of EggInfoDirectory, but could also be accessed as a
> Mapping where the keys are project names and those values are
> EggInfos ... but maybe something along those lines would work?
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

Tarek Ziadé | http://ziade.org

More information about the Distutils-SIG mailing list