Skip to content

Commit

Permalink
[1.5.x] Fix filtering during collection of paths in setup.py
Browse files Browse the repository at this point in the history
Thanks Marek Brzóska for the report.

f179a51 from master.
  • Loading branch information
ramiro committed Feb 14, 2013
1 parent 89ce55b commit 1c086df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Expand Up @@ -68,9 +68,7 @@ def fullsplit(path, result=None):

for dirpath, dirnames, filenames in os.walk(django_dir):
# Ignore PEP 3147 cache dirs and those whose names start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.') or dirname == '__pycache__':
del dirnames[i]
dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
elif filenames:
Expand Down

0 comments on commit 1c086df

Please sign in to comment.