aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:52:20 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:52:20 -0400
commitb925f19a4ef1b214650b770c74a083fc4f982758 (patch)
treeff545b7d0e7054f658eaa147b44c0fa289a028b9
parent38b6f23637bcf8db5b9237393399041fbe36c65f (diff)
downloadexternal_python_setuptools-b925f19a4ef1b214650b770c74a083fc4f982758.tar.gz
external_python_setuptools-b925f19a4ef1b214650b770c74a083fc4f982758.tar.bz2
external_python_setuptools-b925f19a4ef1b214650b770c74a083fc4f982758.zip
Incorporate the exclusion path in the _exclude function.
-rw-r--r--setuptools/command/install_lib.py8
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