File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,12 @@ def entry_points(self) -> Dict[str, str]:
55
55
# Calculate the location of the entry_points.txt file
56
56
metadata = self .metadata
57
57
name = "{}-{}" .format (metadata .name .replace ("-" , "_" ), metadata .version )
58
- entry_points_path = os .path .join (
59
- "{}.dist-info" .format (name ), "entry_points.txt"
60
- )
58
+ # Note that the zipfile module always uses the forward slash as
59
+ # directory separator, even on Windows, so don't use os.path.join
60
+ # here. Reference for Python 3.10:
61
+ # https://github.com/python/cpython/blob/3.10/Lib/zipfile.py#L355.
62
+ # TODO: use zipfile.Path once 3.8 is our minimum supported version
63
+ entry_points_path = "{}.dist-info/entry_points.txt" .format (name )
61
64
62
65
# If this file does not exist in the wheel, there are no entry points
63
66
if entry_points_path not in whl .namelist ():
You can’t perform that action at this time.
0 commit comments