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:
Sjoerd Mullender 2004-06-18 20:39:11 +00:00
parent 9e1bfe7dd9
commit 4dbda47aea
1 changed files with 2 additions and 0 deletions

View File

@ -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)