Skip to content

Commit

Permalink
Fix entry point scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Jun 15, 2020
1 parent c999ba4 commit 2b4b5de
Showing 1 changed file with 1 addition and 1 deletion.
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 2b4b5de

Please sign in to comment.