[issue12377] Clean up packages_root option

Erik Bray report at bugs.python.org
Mon Jun 20 21:20:43 CEST 2011


New submission from Erik Bray <erik.m.bray at gmail.com>:

This issue was first mentioned in issue12375.  The Distribution.package_dir attribute (which also appears in a few commands) is not used in a consistent manner.  Some code expects it to be a string, while other code expects it to be a dict.

I believe the correct behavior now is for it to be a string, since only one root directory for Python packages is allowed in packaging.

Eric Araujo also points out that packages_root and the associated package_dir attribute are misnamed: They also point to the root for any Python modules.  I'm not sure what a better name would be though--I'm tempted to suggest "source_dir", but that seems a little broad since it doesn't necessarily include C extension source.

----------
assignee: tarek
components: Distutils2
messages: 138747
nosy: alexis, eric.araujo, erik.bray, tarek
priority: normal
severity: normal
status: open
title: Clean up packages_root option
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12377>
_______________________________________


More information about the Python-bugs-list mailing list