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
Boxiang Sun
slapos.buildout
Commits
15534523
Commit
15534523
authored
Apr 19, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Replace zc.buildout requirements with slapos.buildout."
This reverts commit
826d7796
.
parent
3336aae5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
bootstrap/bootstrap.py
bootstrap/bootstrap.py
+1
-1
setup.py
setup.py
+1
-1
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+4
-4
src/zc/buildout/easy_install.py
src/zc/buildout/easy_install.py
+1
-1
No files found.
bootstrap/bootstrap.py
View file @
15534523
...
@@ -205,7 +205,7 @@ env = dict(
...
@@ -205,7 +205,7 @@ env = dict(
os
.
environ
,
os
.
environ
,
PYTHONPATH
=
setup_requirement_path
)
PYTHONPATH
=
setup_requirement_path
)
requirement
=
'
slapos
.buildout'
requirement
=
'
zc
.buildout'
version
=
options
.
version
version
=
options
.
version
if
version
is
None
and
not
options
.
accept_buildout_test_releases
:
if
version
is
None
and
not
options
.
accept_buildout_test_releases
:
# Figure out the most recent final version of zc.buildout.
# Figure out the most recent final version of zc.buildout.
...
...
setup.py
View file @
15534523
...
@@ -68,7 +68,7 @@ debug = %(name)s.testrecipes:Debug
...
@@ -68,7 +68,7 @@ debug = %(name)s.testrecipes:Debug
"""
%
dict
(
name
=
name
)
"""
%
dict
(
name
=
name
)
setup
(
setup
(
name
=
'slapos.buildout'
,
name
=
name
,
version
=
version
,
version
=
version
,
author
=
"Jim Fulton"
,
author
=
"Jim Fulton"
,
author_email
=
"jim@zope.com"
,
author_email
=
"jim@zope.com"
,
...
...
src/zc/buildout/buildout.py
View file @
15534523
...
@@ -344,7 +344,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -344,7 +344,7 @@ class Buildout(UserDict.DictMixin):
# Get a base working set for our distributions that corresponds to the
# Get a base working set for our distributions that corresponds to the
# stated desires in the configuration.
# stated desires in the configuration.
distributions
=
[
'setuptools'
,
'
slapos
.buildout'
]
distributions
=
[
'setuptools'
,
'
zc
.buildout'
]
if
options
.
get
(
'offline'
)
==
'true'
:
if
options
.
get
(
'offline'
)
==
'true'
:
ws
=
zc
.
buildout
.
easy_install
.
working_set
(
ws
=
zc
.
buildout
.
easy_install
.
working_set
(
distributions
,
options
[
'executable'
],
distributions
,
options
[
'executable'
],
...
@@ -366,7 +366,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -366,7 +366,7 @@ class Buildout(UserDict.DictMixin):
# Now copy buildout and setuptools eggs, and record destination eggs:
# Now copy buildout and setuptools eggs, and record destination eggs:
entries
=
[]
entries
=
[]
for
name
in
'setuptools'
,
'
slapos
.buildout'
:
for
name
in
'setuptools'
,
'
zc
.buildout'
:
r
=
pkg_resources
.
Requirement
.
parse
(
name
)
r
=
pkg_resources
.
Requirement
.
parse
(
name
)
dist
=
ws
.
find
(
r
)
dist
=
ws
.
find
(
r
)
if
dist
.
precedence
==
pkg_resources
.
DEVELOP_DIST
:
if
dist
.
precedence
==
pkg_resources
.
DEVELOP_DIST
:
...
@@ -388,7 +388,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -388,7 +388,7 @@ class Buildout(UserDict.DictMixin):
# Ideally the (possibly) new version of buildout would get a
# Ideally the (possibly) new version of buildout would get a
# chance to write the script. Not sure how to do that.
# chance to write the script. Not sure how to do that.
ws
=
pkg_resources
.
WorkingSet
(
entries
)
ws
=
pkg_resources
.
WorkingSet
(
entries
)
ws
.
require
(
'
slapos
.buildout'
)
ws
.
require
(
'
zc
.buildout'
)
partsdir
=
os
.
path
.
join
(
options
[
'parts-directory'
],
'buildout'
)
partsdir
=
os
.
path
.
join
(
options
[
'parts-directory'
],
'buildout'
)
if
not
os
.
path
.
exists
(
partsdir
):
if
not
os
.
path
.
exists
(
partsdir
):
os
.
mkdir
(
partsdir
)
os
.
mkdir
(
partsdir
)
...
@@ -409,7 +409,7 @@ class Buildout(UserDict.DictMixin):
...
@@ -409,7 +409,7 @@ class Buildout(UserDict.DictMixin):
script_initialization
=
''
script_initialization
=
''
zc
.
buildout
.
easy_install
.
sitepackage_safe_scripts
(
zc
.
buildout
.
easy_install
.
sitepackage_safe_scripts
(
options
[
'bin-directory'
],
ws
,
options
[
'executable'
],
partsdir
,
options
[
'bin-directory'
],
ws
,
options
[
'executable'
],
partsdir
,
reqs
=
[
'
slapos
.buildout'
],
relative_paths
=
relative_paths
,
reqs
=
[
'
zc
.buildout'
],
relative_paths
=
relative_paths
,
include_site_packages
=
self
.
include_site_packages
,
include_site_packages
=
self
.
include_site_packages
,
script_initialization
=
script_initialization
,
script_initialization
=
script_initialization
,
exec_sitecustomize
=
self
.
exec_sitecustomize
,
exec_sitecustomize
=
self
.
exec_sitecustomize
,
...
...
src/zc/buildout/easy_install.py
View file @
15534523
...
@@ -78,7 +78,7 @@ setuptools_loc = pkg_resources.working_set.find(
...
@@ -78,7 +78,7 @@ setuptools_loc = pkg_resources.working_set.find(
# Include buildout and setuptools eggs in paths. We prevent dupes just to
# Include buildout and setuptools eggs in paths. We prevent dupes just to
# keep from duplicating any log messages about them.
# keep from duplicating any log messages about them.
buildout_loc
=
pkg_resources
.
working_set
.
find
(
buildout_loc
=
pkg_resources
.
working_set
.
find
(
pkg_resources
.
Requirement
.
parse
(
'
slapos
.buildout'
)).
location
pkg_resources
.
Requirement
.
parse
(
'
zc
.buildout'
)).
location
buildout_and_setuptools_path
=
[
setuptools_loc
]
buildout_and_setuptools_path
=
[
setuptools_loc
]
if
os
.
path
.
normpath
(
setuptools_loc
)
!=
os
.
path
.
normpath
(
buildout_loc
):
if
os
.
path
.
normpath
(
setuptools_loc
)
!=
os
.
path
.
normpath
(
buildout_loc
):
buildout_and_setuptools_path
.
append
(
buildout_loc
)
buildout_and_setuptools_path
.
append
(
buildout_loc
)
...
...
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