diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 10:19:36 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-26 10:19:36 -0400 |
commit | e8914480487426305fece22422fdb725f88add7f (patch) | |
tree | 940956ea9b853fbf9574fb485e5fdb0672fae47b /setuptools/command/install_lib.py | |
parent | 03fe70a1793ea5dae7685323f1146eb12c2a0e0e (diff) | |
download | external_python_setuptools-e8914480487426305fece22422fdb725f88add7f.tar.gz external_python_setuptools-e8914480487426305fece22422fdb725f88add7f.tar.bz2 external_python_setuptools-e8914480487426305fece22422fdb725f88add7f.zip |
Add docstring for get_exclusions. Just return the set as it is a sized container.
Diffstat (limited to 'setuptools/command/install_lib.py')
-rw-r--r-- | setuptools/command/install_lib.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setuptools/command/install_lib.py b/setuptools/command/install_lib.py index f4b295cc..91d2b25d 100644 --- a/setuptools/command/install_lib.py +++ b/setuptools/command/install_lib.py @@ -12,6 +12,10 @@ class install_lib(orig.install_lib): self.byte_compile(outfiles) def get_exclusions(self): + """ + Return a collections.Sized collections.Container of paths to be + excluded for single_version_externally_managed installations. + """ exclude = set() nsp = self.distribution.namespace_packages svem = (nsp and self.get_finalized_command('install') @@ -24,7 +28,7 @@ class install_lib(orig.install_lib): for f in self._gen_exclude_names(): exclude.add(os.path.join(pkgdir, f)) parts.pop() - return dict.fromkeys(exclude, 1) + return exclude @staticmethod def _gen_exclude_names(): |