summaryrefslogtreecommitdiff
path: root/setuptools/command/build_py.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-11-14 17:41:08 -0500
committerGitHub <noreply@github.com>2021-11-14 17:41:08 -0500
commit5b75de07169ef13952a5ab48e0b8bc15f31d0c37 (patch)
tree13b02b20c66d6f5fca7905285ee609a5ad72acb6 /setuptools/command/build_py.py
parent6fc5d3099898fc3d06bcf72f1f6607d02124d60f (diff)
parent5141c4210c2a63a3bb54f0f512e4116faedc8d63 (diff)
downloadpython-setuptools-git-debt/remove-legacy-version.tar.gz
Merge branch 'main' into debt/remove-legacy-versiondebt/remove-legacy-version
Diffstat (limited to 'setuptools/command/build_py.py')
-rw-r--r--setuptools/command/build_py.py10
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)