Commit 1d841d78 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2195 from ofek/fix

Fix entry point scripts
parents c999ba42 d74a1606
Fix broken entry points generated by easy-install (pip editable installs).
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment