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
Yusei Tahara
slapos.buildout
Commits
343e5acd
Commit
343e5acd
authored
Jan 23, 2013
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added notes on what to do for buildout-versions integration.
Everything is in place now for actually implementing it.
parent
ae2fe262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
src/zc/buildout/buildout.py
src/zc/buildout/buildout.py
+36
-0
No files found.
src/zc/buildout/buildout.py
View file @
343e5acd
...
...
@@ -245,6 +245,8 @@ class Buildout(DictMixin):
# if 'buildout_versions_file' in buildout['buildout']:
# file_name = buildout['buildout']['buildout_versions_file']
# REINOUT: add 'update-versions-file' option.
self
.
_annotated
=
copy
.
deepcopy
(
data
)
self
.
_raw
=
_unannotate
(
data
)
self
.
_data
=
{}
...
...
@@ -646,8 +648,42 @@ class Buildout(DictMixin):
elif
(
not
installed_parts
)
and
installed_exists
:
os
.
remove
(
self
[
'buildout'
][
'installed'
])
# REINOUT Print picked versions here.
# self._print_picked_versions()
self
.
_unload_extensions
()
# def _print_picked_versions(self):
# if picked_versions:
# output = ['[versions]']
# required_output = []
# for dist_, version in sorted(picked_versions.items()):
# if dist_ in required_by:
# required_output.append('')
# required_output.append('# Required by:')
# for req_ in sorted(required_by[dist_]):
# required_output.append('# '+req_)
# target = required_output
# else:
# target = output
# target.append("%s = %s" % (dist_, version))
# output.extend(required_output)
# print "Versions had to be automatically picked."
# print "The following part definition lists the versions picked:"
# print '\n'.join(output)
# if file_name:
# if os.path.exists(file_name):
# output[:1] = [
# '',
# '# Added by Buildout Versions at %s' % datetime.now(),
# ]
# output.append('')
# f = open(file_name,'a')
# f.write('\n'.join(output))
# f.close()
# print "This information has been written to %r" % file_name
def
_update_installed
(
self
,
**
buildout_options
):
installed
=
self
[
'buildout'
][
'installed'
]
f
=
open
(
installed
,
'a'
)
...
...
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