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
55687e96
Commit
55687e96
authored
Sep 02, 2015
by
Bernard `Guyzmo` Pratz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation and added test
Signed-off-by:
Bernard `Guyzmo` Pratz
<
guyzmo+github@m0g.net
>
parent
c3c8796d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
CHANGES.rst
CHANGES.rst
+2
-1
src/zc/buildout/downloadcache.txt
src/zc/buildout/downloadcache.txt
+28
-1
No files found.
CHANGES.rst
View file @
55687e96
...
@@ -4,7 +4,8 @@ Change History
...
@@ -4,7 +4,8 @@ Change History
2.4.3
(
unreleased
)
2.4.3
(
unreleased
)
==================
==================
-
Nothing
changed
yet
.
-
Added
nested
directory
creation
support
[
guyzmo
]
2.4.2
(
2015
-
08
-
26
)
2.4.2
(
2015
-
08
-
26
)
...
...
src/zc/buildout/downloadcache.txt
View file @
55687e96
...
@@ -144,7 +144,7 @@ Auto-creation of download cache directory
...
@@ -144,7 +144,7 @@ Auto-creation of download cache directory
-----------------------------------------
-----------------------------------------
With zc.buildout version 2.2.2 or higher the cache directory is automatically
With zc.buildout version 2.2.2 or higher the cache directory is automatically
created
, provided it is within an already existing directory
::
created::
>>> write('buildout.cfg',
>>> write('buildout.cfg',
... '''
... '''
...
@@ -215,3 +215,30 @@ filesystem because it wouldn't make any sense having a remote cache::
...
@@ -215,3 +215,30 @@ filesystem because it wouldn't make any sense having a remote cache::
Initializing.
Initializing.
Error: Setting "download-cache" to a non absolute location ("cache") within a
Error: Setting "download-cache" to a non absolute location ("cache") within a
remote configuration file...
remote configuration file...
Though, you can create the ``download-cache`` within a nested directory, so that you can
group all your generated directories (like ``eggs-directory`` or ``extends-cache`` too)
within a single directory:
>>> test_nested = tmpdir('test_nested')
>>> cd(test_nested)
>>> write('buildout.cfg',
... '''
... [buildout]
... download-cache = ${buildout:directory}/var/cache
... eggs-directory = ${buildout:directory}/var/eggs
... parts-directory = ${buildout:directory}/var/parts
... develop-eggs-directory = ${buildout:directory}/var/develop-eggs
... ''')
>>> dummy = system(buildout)
>>> ls(test_nested)
d bin
- buildout.cfg
d var
>>> ls(os.path.join(test_nested, 'var'))
d cache
d develop-eggs
d eggs
d parts
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