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
0a81b14f
Commit
0a81b14f
authored
Jan 20, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace use of fix_jython_executable with CommandSpec invocation.
parent
adbb4edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+3
-4
No files found.
setuptools/tests/test_easy_install.py
View file @
0a81b14f
...
...
@@ -26,7 +26,7 @@ from setuptools.compat import StringIO, BytesIO, urlparse
from
setuptools.sandbox
import
run_setup
import
setuptools.command.easy_install
as
ei
from
setuptools.command.easy_install
import
(
easy_install
,
fix_jython_executable
,
nt_quote_arg
,
easy_install
,
nt_quote_arg
,
is_sh
,
ScriptWriter
,
CommandSpec
,
)
from
setuptools.command.easy_install
import
PthDistributions
...
...
@@ -51,8 +51,7 @@ class FakeDist(object):
def
as_requirement
(
self
):
return
'spec'
WANTED
=
DALS
(
"""
#!%s
WANTED
=
ei
.
CommandSpec
.
best
().
from_environment
().
as_header
()
+
DALS
(
"""
# EASY-INSTALL-ENTRY-SCRIPT: 'spec','console_scripts','name'
__requires__ = 'spec'
import sys
...
...
@@ -62,7 +61,7 @@ WANTED = DALS("""
sys.exit(
load_entry_point('spec', 'console_scripts', 'name')()
)
"""
)
%
nt_quote_arg
(
fix_jython_executable
(
sys
.
executable
,
""
))
"""
)
SETUP_PY
=
DALS
(
"""
from setuptools import setup
...
...
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