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
97f96e8c
Commit
97f96e8c
authored
Jan 18, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract writer resolution as a variable
parent
0a0f7d58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
setuptools/command/install_scripts.py
setuptools/command/install_scripts.py
+3
-1
No files found.
setuptools/command/install_scripts.py
View file @
97f96e8c
...
...
@@ -37,8 +37,10 @@ class install_scripts(orig.install_scripts):
if
is_wininst
:
exec_param
=
"python.exe"
writer
=
ei
.
WindowsScriptWriter
# resolve the writer to the environment
writer
=
writer
.
best
()
cmd
=
ei
.
CommandSpec
.
from_param
(
exec_param
)
for
args
in
writer
.
best
().
get_args
(
dist
,
cmd
.
as_header
()):
for
args
in
writer
.
get_args
(
dist
,
cmd
.
as_header
()):
self
.
write_script
(
*
args
)
def
write_script
(
self
,
script_name
,
contents
,
mode
=
"t"
,
*
ignored
):
...
...
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