Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix filtering during collection of paths in setup.py

Thanks Marek Brzóska for the report.
  • Loading branch information...
commit f179a5198e05e1be8ba8be87c1f0e1a8924cf005 1 parent 668d0b8
@ramiro ramiro authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 setup.py
View
4 setup.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.