aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install_lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/install_lib.py')
-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