diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-03 17:35:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-03 17:35:08 -0400 |
| commit | 4416409d706d46543c3ebcf6085112060f2dc4ac (patch) | |
| tree | 36b85c4ab9288a7a03a4a1065d7c60004c3fc38b /setuptools/command/build_py.py | |
| parent | 2ef757e031870e50d9b7603ab1933d2b670f1e80 (diff) | |
| parent | 6757e3856e0cdbc642053f96694422ae671b4cc3 (diff) | |
| download | python-setuptools-git-4416409d706d46543c3ebcf6085112060f2dc4ac.tar.gz | |
Merge pull request #2844 from abravalheri/fix-1461
Fix 1461: Better loop breaker for `manifest_maker`
Diffstat (limited to 'setuptools/command/build_py.py')
| -rw-r--r-- | setuptools/command/build_py.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index 6a615433..c3fdc092 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -67,6 +67,16 @@ class build_py(orig.build_py): self.analyze_manifest() return list(map(self._get_pkg_data_files, self.packages or ())) + def get_data_files_without_manifest(self): + """ + Generate list of ``(package,src_dir,build_dir,filenames)`` tuples, + but without triggering any attempt to analyze or build the manifest. + """ + # Prevent eventual errors from unset `manifest_files` + # (that would otherwise be set by `analyze_manifest`) + self.__dict__.setdefault('manifest_files', {}) + return list(map(self._get_pkg_data_files, self.packages or ())) + def _get_pkg_data_files(self, package): # Locate package source directory src_dir = self.get_package_dir(package) |
