Skip to content

Commit

Permalink
Merge pull request #2195 from ofek/fix
Browse files Browse the repository at this point in the history
Fix entry point scripts
  • Loading branch information
jaraco authored Jun 15, 2020
2 parents c999ba4 + d74a160 commit 1d841d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2195.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix broken entry points generated by easy-install (pip editable installs).
2 changes: 1 addition & 1 deletion setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ class ScriptWriter:
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
for entry_point in distribution(%(spec)r).entry_points:
for entry_point in distribution(%(spec)r.split('==')[0]).entry_points:
if entry_point.group == %(group)r and entry_point.name == %(name)r:
sys.exit(entry_point.load()())
""").lstrip() # noqa: E501
Expand Down

0 comments on commit 1d841d7

Please sign in to comment.