mirror of https://github.com/python/cpython
If self.packages is None (this can happen, I saw it), return
immediately (since None is not a sequence you can iterate over).
This commit is contained in:
parent
9e1bfe7dd9
commit
4dbda47aea
|
@ -104,6 +104,8 @@ class build_py (Command):
|
||||||
def get_data_files (self):
|
def get_data_files (self):
|
||||||
"""Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
|
"""Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
|
||||||
data = []
|
data = []
|
||||||
|
if not self.packages:
|
||||||
|
return data
|
||||||
for package in self.packages:
|
for package in self.packages:
|
||||||
# Locate package source directory
|
# Locate package source directory
|
||||||
src_dir = self.get_package_dir(package)
|
src_dir = self.get_package_dir(package)
|
||||||
|
|
Loading…
Reference in New Issue