Skip to content

Commit 8ad5407

Browse files
committed
Normalize name before applying exclude filter to wheel contents
1 parent b6607dc commit 8ad5407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/_wheelbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def add_tree(
114114
dirs[:] = [x for x in sorted(dirs) if x != "__pycache__"]
115115
for name in sorted(files):
116116
file = os.path.normpath(os.path.join(root, name))
117-
if not os.path.isfile(file) or should_exclude(file):
118-
continue
119117
arcname = os.path.relpath(file, path).replace(os.path.sep, "/")
118+
if not os.path.isfile(file) or should_exclude(arcname):
119+
continue
120120
if prefix:
121121
arcname = os.path.join(prefix, arcname)
122122
self.add_existing_file(arcname, file)

0 commit comments

Comments
 (0)