File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ def extract_wheel(
396
396
for name , (module , attribute ) in sorted (whl .entry_points ().items ()):
397
397
# There is an extreme edge-case with entry_points that end with `.py`
398
398
# See: https://github.com/bazelbuild/bazel/blob/09c621e4cf5b968f4c6cdf905ab142d5961f9ddc/src/test/java/com/google/devtools/build/lib/rules/python/PyBinaryConfiguredTargetTest.java#L174
399
- entry_point_without_py = name [:- 3 ] if name .endswith (".py" ) else name
399
+ entry_point_without_py = f" { name [:- 3 ]} _py" if name .endswith (".py" ) else name
400
400
entry_point_target_name = f"{ WHEEL_ENTRY_POINT_PREFIX } _{ entry_point_without_py } "
401
401
entry_point_script_name = f"{ entry_point_target_name } .py"
402
402
(directory_path / entry_point_script_name ).write_text (
You can’t perform that action at this time.
0 commit comments