Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.buildout
Commits
f0fdf356
Commit
f0fdf356
authored
Apr 14, 2012
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using os.spawn.
parent
c8c09bf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
bootstrap/bootstrap.py
bootstrap/bootstrap.py
+6
-8
No files found.
bootstrap/bootstrap.py
View file @
f0fdf356
...
@@ -25,8 +25,6 @@ from optparse import OptionParser
...
@@ -25,8 +25,6 @@ from optparse import OptionParser
tmpeggs
=
tempfile
.
mkdtemp
()
tmpeggs
=
tempfile
.
mkdtemp
()
is_jython
=
sys
.
platform
.
startswith
(
'java'
)
# parsing arguments
# parsing arguments
parser
=
OptionParser
(
parser
=
OptionParser
(
'This is a custom version of the zc.buildout %prog script. It is '
'This is a custom version of the zc.buildout %prog script. It is '
...
@@ -113,12 +111,12 @@ if 'bootstrap-testing-find-links' in os.environ:
...
@@ -113,12 +111,12 @@ if 'bootstrap-testing-find-links' in os.environ:
cmd
.
append
(
'zc.buildout'
+
VERSION
)
cmd
.
append
(
'zc.buildout'
+
VERSION
)
if
is_jython
:
import
subprocess
import
subprocess
exitcode
=
subprocess
.
Popen
(
cmd
,
env
=
env
).
wait
()
if
subprocess
.
call
(
cmd
,
env
=
env
)
!=
0
:
else
:
# Windows prefers this, apparently; otherwise we would prefer subprocess
raise
Exception
(
exitcode
=
os
.
spawnle
(
*
([
os
.
P_WAIT
,
sys
.
executable
]
+
cmd
+
[
env
]))
"Failed to execute command:
\
n
%s"
,
assert
exitcode
==
0
repr
(
cmd
)[
1
:
-
1
])
ws
.
add_entry
(
tmpeggs
)
ws
.
add_entry
(
tmpeggs
)
ws
.
require
(
'zc.buildout'
+
VERSION
)
ws
.
require
(
'zc.buildout'
+
VERSION
)
...
...
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