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
isaak yansane-sisk
slapos.buildout
Commits
4d14d8f0
Commit
4d14d8f0
authored
Apr 14, 2012
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop usinf os.spawn (and _safe_arg where not needed)
parent
340dcabf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
21 deletions
+15
-21
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+5
-10
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+10
-11
No files found.
src/zc/buildout/testing.py
View file @
4d14d8f0
...
...
@@ -111,19 +111,14 @@ def get(url):
def
_runsetup
(
setup
,
executable
,
*
args
):
if
os
.
path
.
isdir
(
setup
):
setup
=
os
.
path
.
join
(
setup
,
'setup.py'
)
d
=
os
.
path
.
dirname
(
setup
)
args
=
[
zc
.
buildout
.
easy_install
.
_safe_arg
(
arg
)
for
arg
in
args
]
args
=
list
(
args
)
args
.
insert
(
0
,
'-q'
)
args
.
append
(
dict
(
os
.
environ
,
PYTHONPATH
=
setuptools_location
))
here
=
os
.
getcwd
()
try
:
os
.
chdir
(
d
)
os
.
spawnle
(
os
.
P_WAIT
,
executable
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
executable
)
,
setup
,
*
args
)
os
.
chdir
(
os
.
path
.
dirname
(
setup
)
)
zc
.
buildout
.
easy_install
.
call_subprocess
(
[
executable
,
setup
]
+
args
,
env
=
dict
(
os
.
environ
,
PYTHONPATH
=
setuptools_location
)
)
if
os
.
path
.
exists
(
'build'
):
rmtree
(
'build'
)
finally
:
...
...
src/zc/buildout/tests.py
View file @
4d14d8f0
...
...
@@ -2813,17 +2813,16 @@ def getWorkingSetWithBuildoutEgg(test):
# We have a develop egg, create a real egg for it:
here
=
os
.
getcwd
()
os
.
chdir
(
os
.
path
.
dirname
(
dist
.
location
))
assert
os
.
spawnle
(
os
.
P_WAIT
,
sys
.
executable
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
),
zc
.
buildout
.
easy_install
.
call_subprocess
(
[
sys
.
executable
,
os
.
path
.
join
(
os
.
path
.
dirname
(
dist
.
location
),
'setup.py'
),
'-q'
,
'bdist_egg'
,
'-d'
,
eggs
,
dict
(
os
.
environ
,
'-q'
,
'bdist_egg'
,
'-d'
,
eggs
]
,
env
=
dict
(
os
.
environ
,
PYTHONPATH
=
pkg_resources
.
working_set
.
find
(
pkg_resources
.
Requirement
.
parse
(
'setuptools'
)
).
location
,
),
)
==
0
)
os
.
chdir
(
here
)
os
.
remove
(
os
.
path
.
join
(
eggs
,
'zc.buildout.egg-link'
))
...
...
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