diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 10:52:20 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 10:52:20 -0400 |
commit | 2cf0c24e2fc6521a6fd35fe2b44186b0bb2032d2 (patch) | |
tree | f55dc6e9fd631fd1f90f01de43b2f2608ec64ec5 /setuptools | |
parent | 37ccf84ed4f36ce077be65e4320ef2be28f92212 (diff) | |
download | python-setuptools-bitbucket-2cf0c24e2fc6521a6fd35fe2b44186b0bb2032d2.tar.gz |
Incorporate the exclusion path in the _exclude function.
Diffstat (limited to 'setuptools')
-rw-r--r-- | setuptools/command/install_lib.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py index cc531c01..f36d8651 100644 --- a/setuptools/command/install_lib.py +++ b/setuptools/command/install_lib.py @@ -19,14 +19,18 @@ class install_lib(orig.install_lib): excluded for single_version_externally_managed installations. """ exclude = set() - pkg_path = lambda pkg: os.path.join(self.install_dir, *pkg.split('.')) + + def _exclude(pkg, exclusion_path): + parts = pkg.split('.') + [exclusion_path] + return os.path.join(self.install_dir, *parts) + all_packages = ( pkg for ns_pkg in self._get_SVEM_NSPs() for pkg in self._all_packages(ns_pkg) ) for pkg, f in product(all_packages, self._gen_exclude_names()): - exclude.add(os.path.join(pkg_path(pkg), f)) + exclude.add(_exclude(pkg, f)) return exclude @staticmethod |