Skip to content

Commit 1d841d7

Browse files
authored
Merge pull request #2195 from ofek/fix
Fix entry point scripts
2 parents c999ba4 + d74a160 commit 1d841d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/2195.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix broken entry points generated by easy-install (pip editable installs).

setuptools/command/easy_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ class ScriptWriter:
20792079
20802080
if __name__ == '__main__':
20812081
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
2082-
for entry_point in distribution(%(spec)r).entry_points:
2082+
for entry_point in distribution(%(spec)r.split('==')[0]).entry_points:
20832083
if entry_point.group == %(group)r and entry_point.name == %(name)r:
20842084
sys.exit(entry_point.load()())
20852085
""").lstrip() # noqa: E501

0 commit comments

Comments
 (0)