aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r--Lib/distutils/command/build_py.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index cfbab262ccd..3079bfcdef3 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -104,6 +104,8 @@ class build_py (Command):
def get_data_files (self):
"""Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
data = []
+ if not self.packages:
+ return data
for package in self.packages:
# Locate package source directory
src_dir = self.get_package_dir(package)