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
Łukasz Nowak
slapos.buildout
Commits
06c677a9
Commit
06c677a9
authored
Mar 31, 2008
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied various patches for Windows issue
parent
1acf140b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
12 deletions
+21
-12
CHANGES.txt
CHANGES.txt
+2
-0
bootstrap/bootstrap.py
bootstrap/bootstrap.py
+12
-5
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+3
-3
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+2
-2
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+1
-1
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+1
-1
No files found.
CHANGES.txt
View file @
06c677a9
...
@@ -10,6 +10,8 @@ Change History
...
@@ -10,6 +10,8 @@ Change History
- Made easy_install.py's _get_version except non final releases of Python,
- Made easy_install.py's _get_version except non final releases of Python,
like 2.4.4c0. (hannosch)
like 2.4.4c0. (hannosch)
- various patches for Windows (patch by Gottfried Ganssauge) (ajung)
- applied patch fixing rmtree issues on Windows (patch by
- applied patch fixing rmtree issues on Windows (patch by
Gottfried Ganssauge) (ajung)
Gottfried Ganssauge) (ajung)
...
...
bootstrap/bootstrap.py
View file @
06c677a9
...
@@ -34,14 +34,21 @@ except ImportError:
...
@@ -34,14 +34,21 @@ except ImportError:
import
pkg_resources
import
pkg_resources
cmd
=
'from setuptools.command.easy_install import main; main()'
if
sys
.
platform
==
'win32'
:
if
sys
.
platform
==
'win32'
:
cmd
=
'"%s"'
%
cmd
# work around spawn lamosity on windows
def
quote
(
c
):
if
' '
in
c
:
return
'"%s"'
%
c
# work around spawn lamosity on windows
else
:
return
c
else
:
def
quote
(
c
):
return
c
ws
=
pkg_resources
.
working_set
cmd
=
'from setuptools.command.easy_install import main; main()'
ws
=
pkg_resources
.
working_set
assert
os
.
spawnle
(
assert
os
.
spawnle
(
os
.
P_WAIT
,
sys
.
executable
,
sys
.
executable
,
os
.
P_WAIT
,
sys
.
executable
,
quote
(
sys
.
executable
)
,
'-c'
,
cmd
,
'-mqNxd'
,
tmpeggs
,
'zc.buildout'
,
'-c'
,
quote
(
cmd
),
'-mqNxd'
,
quote
(
tmpeggs
)
,
'zc.buildout'
,
dict
(
os
.
environ
,
dict
(
os
.
environ
,
PYTHONPATH
=
PYTHONPATH
=
ws
.
find
(
pkg_resources
.
Requirement
.
parse
(
'setuptools'
)).
location
ws
.
find
(
pkg_resources
.
Requirement
.
parse
(
'setuptools'
)).
location
...
...
src/zc/buildout/buildout.py
View file @
06c677a9
...
@@ -690,7 +690,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -690,7 +690,7 @@ class Buildout(UserDict.DictMixin):
args
.
insert
(
1
,
'-W'
)
args
.
insert
(
1
,
'-W'
)
if
not
__debug__
:
if
not
__debug__
:
args
.
insert
(
0
,
'-O'
)
args
.
insert
(
0
,
'-O'
)
args
.
insert
(
0
,
sys
.
executable
)
args
.
insert
(
0
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
)
os
.
execv
(
sys
.
executable
,
args
)
os
.
execv
(
sys
.
executable
,
args
)
self
.
_logger
.
info
(
"Upgraded:
\
n
%s;
\
n
restarting."
,
self
.
_logger
.
info
(
"Upgraded:
\
n
%s;
\
n
restarting."
,
...
@@ -713,7 +713,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -713,7 +713,7 @@ class Buildout(UserDict.DictMixin):
args
=
map
(
zc
.
buildout
.
easy_install
.
_safe_arg
,
sys
.
argv
)
args
=
map
(
zc
.
buildout
.
easy_install
.
_safe_arg
,
sys
.
argv
)
if
not
__debug__
:
if
not
__debug__
:
args
.
insert
(
0
,
'-O'
)
args
.
insert
(
0
,
'-O'
)
args
.
insert
(
0
,
sys
.
executable
)
args
.
insert
(
0
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
)
sys
.
exit
(
os
.
spawnv
(
os
.
P_WAIT
,
sys
.
executable
,
args
))
sys
.
exit
(
os
.
spawnv
(
os
.
P_WAIT
,
sys
.
executable
,
args
))
def
_load_extensions
(
self
):
def
_load_extensions
(
self
):
...
@@ -765,7 +765,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -765,7 +765,7 @@ class Buildout(UserDict.DictMixin):
setup
=
setup
,
setup
=
setup
,
__file__
=
setup
,
__file__
=
setup
,
))
))
os
.
spawnl
(
os
.
P_WAIT
,
sys
.
executable
,
sys
.
executable
,
tsetup
,
os
.
spawnl
(
os
.
P_WAIT
,
sys
.
executable
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
,
tsetup
,
*
[
zc
.
buildout
.
easy_install
.
_safe_arg
(
a
)
*
[
zc
.
buildout
.
easy_install
.
_safe_arg
(
a
)
for
a
in
args
])
for
a
in
args
])
finally
:
finally
:
...
...
src/zc/buildout/easy_install.py
View file @
06c677a9
...
@@ -281,7 +281,7 @@ class Installer:
...
@@ -281,7 +281,7 @@ class Installer:
args
+=
(
dict
(
os
.
environ
,
PYTHONPATH
=
path
),
)
args
+=
(
dict
(
os
.
environ
,
PYTHONPATH
=
path
),
)
sys
.
stdout
.
flush
()
# We want any pending output first
sys
.
stdout
.
flush
()
# We want any pending output first
exit_code
=
os
.
spawnle
(
exit_code
=
os
.
spawnle
(
os
.
P_WAIT
,
self
.
_executable
,
self
.
_executable
,
os
.
P_WAIT
,
self
.
_executable
,
_safe_arg
(
self
.
_executable
)
,
*
args
)
*
args
)
dists
=
[]
dists
=
[]
...
@@ -823,7 +823,7 @@ def develop(setup, dest,
...
@@ -823,7 +823,7 @@ def develop(setup, dest,
if
log_level
<
logging
.
DEBUG
:
if
log_level
<
logging
.
DEBUG
:
logger
.
debug
(
"in: %r
\
n
%s"
,
directory
,
' '
.
join
(
args
))
logger
.
debug
(
"in: %r
\
n
%s"
,
directory
,
' '
.
join
(
args
))
assert
os
.
spawnl
(
os
.
P_WAIT
,
executable
,
executable
,
*
args
)
==
0
assert
os
.
spawnl
(
os
.
P_WAIT
,
executable
,
_safe_arg
(
executable
)
,
*
args
)
==
0
return
_copyeggs
(
tmp3
,
dest
,
'.egg-link'
,
undo
)
return
_copyeggs
(
tmp3
,
dest
,
'.egg-link'
,
undo
)
...
...
src/zc/buildout/testing.py
View file @
06c677a9
...
@@ -102,7 +102,7 @@ def _runsetup(setup, executable, *args):
...
@@ -102,7 +102,7 @@ def _runsetup(setup, executable, *args):
here
=
os
.
getcwd
()
here
=
os
.
getcwd
()
try
:
try
:
os
.
chdir
(
d
)
os
.
chdir
(
d
)
os
.
spawnle
(
os
.
P_WAIT
,
executable
,
executable
,
setup
,
*
args
)
os
.
spawnle
(
os
.
P_WAIT
,
executable
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
executable
)
,
setup
,
*
args
)
if
os
.
path
.
exists
(
'build'
):
if
os
.
path
.
exists
(
'build'
):
rmtree
(
'build'
)
rmtree
(
'build'
)
finally
:
finally
:
...
...
src/zc/buildout/tests.py
View file @
06c677a9
...
@@ -2556,7 +2556,7 @@ def updateSetup(test):
...
@@ -2556,7 +2556,7 @@ def updateSetup(test):
here
=
os
.
getcwd
()
here
=
os
.
getcwd
()
os
.
chdir
(
os
.
path
.
dirname
(
dist
.
location
))
os
.
chdir
(
os
.
path
.
dirname
(
dist
.
location
))
assert
os
.
spawnle
(
assert
os
.
spawnle
(
os
.
P_WAIT
,
sys
.
executable
,
sys
.
executable
,
os
.
P_WAIT
,
sys
.
executable
,
zc
.
buildout
.
easy_install
.
_safe_arg
(
sys
.
executable
)
,
os
.
path
.
join
(
os
.
path
.
dirname
(
dist
.
location
),
'setup.py'
),
os
.
path
.
join
(
os
.
path
.
dirname
(
dist
.
location
),
'setup.py'
),
'-q'
,
'bdist_egg'
,
'-d'
,
eggs
,
'-q'
,
'bdist_egg'
,
'-d'
,
eggs
,
dict
(
os
.
environ
,
dict
(
os
.
environ
,
...
...
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