Updated documentation and added test

Signed-off-by: default avatarBernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
parent c3c8796d
...@@ -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)
......
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment