mirror of
https://github.com/python/cpython.git
synced 2025-09-13 12:17:24 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue