We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b51cf commit 1131f4aCopy full SHA for 1131f4a
patches/auditwheel.py
@@ -14,12 +14,15 @@ def walk(topdir):
14
dirpath.suffix == ".dist-info"
15
and dirpath.parent == topdir
16
):
17
- # list any dist-info/licenses/LICENSE* files
+ # list any files in dist-info subdirs first
18
+ # for example, dist-info/licenses/LICENSE*
19
+ subfiles = []
20
for dirname in dirnames:
- for dn, _, fns in walk(dirpath / dirname):
- for fn in fns:
21
- fn = (dn / fn).relative_to(dirpath)
22
- filenames.append(str(fn))
+ for dpath, _, fnames in walk(dirpath / dirname):
+ for fname in fnames:
23
+ fpath = (dpath / fname).relative_to(dirpath)
24
+ subfiles.append(str(fpath))
25
+ filenames[:0] = subfiles
26
del dirnames[:]
27
# list any dist-info/RECORD file last
28
if "RECORD" in filenames:
0 commit comments