summaryrefslogtreecommitdiff
path: root/setuptools/command/install_lib.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:08:48 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-26 10:08:48 -0400
commit03fe70a1793ea5dae7685323f1146eb12c2a0e0e (patch)
tree03879eaca637d91f4f395c84a5863a75bf307ff9 /setuptools/command/install_lib.py
parent23f5f548a9dfffe5c04f40eee461d2270ecf5f53 (diff)
downloadpython-setuptools-git-03fe70a1793ea5dae7685323f1146eb12c2a0e0e.tar.gz
Construct exclusions as a set
Diffstat (limited to 'setuptools/command/install_lib.py')
-rw-r--r--setuptools/command/install_lib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py
index a1cbd2aa..f4b295cc 100644
--- a/setuptools/command/install_lib.py
+++ b/setuptools/command/install_lib.py
@@ -12,7 +12,7 @@ class install_lib(orig.install_lib):
self.byte_compile(outfiles)
def get_exclusions(self):
- exclude = {}
+ exclude = set()
nsp = self.distribution.namespace_packages
svem = (nsp and self.get_finalized_command('install')
.single_version_externally_managed)
@@ -22,9 +22,9 @@ class install_lib(orig.install_lib):
while parts:
pkgdir = os.path.join(self.install_dir, *parts)
for f in self._gen_exclude_names():
- exclude[os.path.join(pkgdir, f)] = 1
+ exclude.add(os.path.join(pkgdir, f))
parts.pop()
- return exclude
+ return dict.fromkeys(exclude, 1)
@staticmethod
def _gen_exclude_names():