diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2013-02-14 20:29:21 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2013-02-14 20:47:41 -0300 |
| commit | 1c086df50e76f1fd84e0d90bfb1d0b13468ba13b (patch) | |
| tree | ca65e5ce6b79591f40076dded7d5db4c2b5de16d | |
| parent | 89ce55b301d163500b99c72bfefd9f07c5542091 (diff) | |
[1.5.x] Fix filtering during collection of paths in setup.py
Thanks Marek Brzóska for the report.
f179a5198e05e1be8ba8be87c1f0e1a8924cf005 from master.
| -rw-r--r-- | setup.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -68,9 +68,7 @@ django_dir = 'django' 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: |
