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
adbb4edd
Commit
adbb4edd
authored
Jan 20, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate fix_jython_executable and replace with JythonCommandSpec
parent
9209b9f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+6
-17
No files found.
setuptools/command/easy_install.py
View file @
adbb4edd
...
@@ -1844,25 +1844,14 @@ def chmod(path, mode):
...
@@ -1844,25 +1844,14 @@ def chmod(path, mode):
def
fix_jython_executable
(
executable
,
options
):
def
fix_jython_executable
(
executable
,
options
):
if
sys
.
platform
.
startswith
(
'java'
)
and
is_sh
(
executable
):
warnings
.
warn
(
"Use JythonCommandSpec"
,
DeprecationWarning
,
stacklevel
=
2
)
# Workaround for Jython is not needed on Linux systems.
import
java
if
java
.
lang
.
System
.
getProperty
(
"os.name"
)
==
"Linux"
:
if
not
JythonCommandSpec
.
relevant
()
:
return
executable
return
executable
# Workaround Jython's sys.executable being a .sh (an invalid
cmd
=
CommandSpec
.
best
().
from_param
(
executable
)
# shebang line interpreter)
cmd
.
install_options
(
options
)
if
options
:
return
cmd
.
as_header
().
lstrip
(
'#!'
).
rstrip
(
'
\
n
'
)
# Can't apply the workaround, leave it broken
log
.
warn
(
"WARNING: Unable to adapt shebang line for Jython,"
" the following script is NOT executable
\
n
"
" see http://bugs.jython.org/issue1112 for"
" more information."
)
else
:
return
'/usr/bin/env %s'
%
executable
return
executable
class
CommandSpec
(
list
):
class
CommandSpec
(
list
):
...
...
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