Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
ac325f34
Commit
ac325f34
authored
Aug 20, 2016
by
Jason R. Coombs
Committed by
GitHub
Aug 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #736 from Ofekmeister/master
Fix issue #459
parents
b9baa94e
735a66a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGES.rst
CHANGES.rst
+3
-0
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+2
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+2
-0
No files found.
CHANGES.rst
View file @
ac325f34
...
...
@@ -12,6 +12,9 @@ v26.0.0
v25
.4.0
-------
*
#
459
via
#
736
:
On
Windows
systems
,
sys
.
argv
[
0
]
now
correctly
becomes
the
name
of
entry
point
.
*
Add
Extension
(
py_limited_api
=
True
).
When
set
to
a
truthy
value
,
that
extension
gets
a
filename
apropriate
for
code
using
Py_LIMITED_API
.
When
used
correctly
this
allows
a
single
compiled
extension
to
work
on
...
...
setuptools/command/easy_install.py
View file @
ac325f34
...
...
@@ -2018,10 +2018,12 @@ class ScriptWriter(object):
template
=
textwrap
.
dedent
(
"""
# EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r
__requires__ = %(spec)r
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script
\
.pyw?|
\
.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point(%(spec)r, %(group)r, %(name)r)()
)
...
...
setuptools/tests/test_easy_install.py
View file @
ac325f34
...
...
@@ -74,10 +74,12 @@ class TestEasyInstallTest:
expected
=
header
+
DALS
(
"""
# EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name'
__requires__ = 'spec'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script
\
.pyw?|
\
.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('spec', 'console_scripts', 'name')()
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment