Commit 4dbda47a authored by Sjoerd Mullender's avatar Sjoerd Mullender

If self.packages is None (this can happen, I saw it), return

immediately (since None is not a sequence you can iterate over).
parent 9e1bfe7d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment