diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-06-15 16:19:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-15 16:19:51 -0400 |
commit | 1d841d78acd267ff2599a8bd9a90e264f233463a (patch) | |
tree | 2cf7f74ecf337df7dd75639619342ba03b0fdcfd /setuptools/command/easy_install.py | |
parent | c999ba42e3cc99cfdf8c1eea88b9b0136104af12 (diff) | |
parent | d74a16061950593f388a72871533b303b21e2a4e (diff) | |
download | external_python_setuptools-1d841d78acd267ff2599a8bd9a90e264f233463a.tar.gz external_python_setuptools-1d841d78acd267ff2599a8bd9a90e264f233463a.tar.bz2 external_python_setuptools-1d841d78acd267ff2599a8bd9a90e264f233463a.zip |
Merge pull request #2195 from ofek/fix
Fix entry point scripts
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r-- | setuptools/command/easy_install.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index ab8258ca..2563f313 100644 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -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 |