summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-05-05 13:31:26 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-05-05 18:26:24 +0100
commit3deabb76aede789c3404d041dc9bda7c761e1af9 (patch)
tree21f6a1f30162af71bc28f473baa046a96efe7c04
parent7f05c3213b90b31700d9b273c0f5b1e5504af5bd (diff)
downloadpython-setuptools-git-dev/simplified_wheelbuilder.tar.gz
Normalize name before applying exclude filter to wheel contentsdev/simplified_wheelbuilder
-rw-r--r--setuptools/_wheelbuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/_wheelbuilder.py b/setuptools/_wheelbuilder.py
index 2e0f7d1c..b223edae 100644
--- a/setuptools/_wheelbuilder.py
+++ b/setuptools/_wheelbuilder.py
@@ -114,9 +114,9 @@ class WheelBuilder:
dirs[:] = [x for x in sorted(dirs) if x != "__pycache__"]
for name in sorted(files):
file = os.path.normpath(os.path.join(root, name))
- if not os.path.isfile(file) or should_exclude(file):
- continue
arcname = os.path.relpath(file, path).replace(os.path.sep, "/")
+ if not os.path.isfile(file) or should_exclude(arcname):
+ continue
if prefix:
arcname = os.path.join(prefix, arcname)
self.add_existing_file(arcname, file)