diff options
| author | PJ Eby <distutils-sig@python.org> | 2006-03-17 16:57:23 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2006-03-17 16:57:23 +0000 |
| commit | 92a61578a4b7d09ad6a6f9524163e67b62782e18 (patch) | |
| tree | 7d6a363dca53ef9f97f625100e9ce1006eb107b7 /setuptools/command/easy_install.py | |
| parent | 0b0d41cde67414ab19b030ea48b497e17134be19 (diff) | |
| download | python-setuptools-git-92a61578a4b7d09ad6a6f9524163e67b62782e18.tar.gz | |
Support namespace packages in conjunction with system packagers, by omitting
the installation of any ``__init__.py`` files for namespace packages, and
adding a special ``.pth`` file to create a working package in ``sys.modules``.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043119
Diffstat (limited to 'setuptools/command/easy_install.py')
| -rwxr-xr-x | setuptools/command/easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 828fb17f..c6b83be9 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1288,6 +1288,8 @@ def get_exe_prefixes(exe_filename): break if len(parts)<>2 or not name.endswith('.pth'): continue + if name.endswith('-nspkg.pth'): + continue if parts[0] in ('PURELIB','PLATLIB'): pth = z.read(name).strip() prefixes[0] = ('PURELIB/%s/' % pth), '' @@ -1308,8 +1310,6 @@ def parse_requirement_arg(spec): ) - - class PthDistributions(Environment): """A .pth file with Distribution paths in it""" |
