Hi Jim,
Is this desirable?
I think so. I have a nagging concern that this might be better
handled at a lower level, but having buildout aware of the caching
means that zc.sourcerelease would also be able to take advantage of
it, so, for example, you could build a source release from a buildout
that used remote configuration.
Cool.
Any plans for such a feature?
Not yet. :)
Would you accept a patch, if we could make it work?
Sure, assuming that it included tests. Also, rather than a patch, I'd
prefer a development branch if you have access to the zope.org
repository.
Sure. Branch off trunk?
I'm seeing some test failures on trunk, by the way (OS X, Python 2.4).
Are these expected?
$ ./bin/test
Running zope.testing.testrunner.layer.UnitTests tests:
Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
zip_safe flag not set; analyzing archive contents...
zip_safe flag not set; analyzing archive contents...
zip_safe flag not set; analyzing archive contents...
zip_safe flag not set; analyzing archive contents...
zip_safe flag not set; analyzing archive contents...
zip_safe flag not set; analyzing archive contents...
Failure in test test_bootstrap_py (zc.buildout.tests)
Failed doctest test for zc.buildout.tests.test_bootstrap_py
File
"/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/src/zc/buildout/tests.py",
line 581, in test_bootstrap_py
----------------------------------------------------------------------
File
"/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/src/zc/buildout/tests.py",
line 592, in zc.buildout.tests.test_bootstrap_py
Failed example:
print system(zc.buildout.easy_install._safe_arg(sys.executable)+' '+
'bootstrap.py'), # doctest: +ELLIPSIS
Expected:
Downloading ...
Generated script '/sample/bin/buildout'.
Got:
Creating directory '/sample/bin'.
Creating directory '/sample/parts'.
Creating directory '/sample/eggs'.
Creating directory '/sample/develop-eggs'.
Generated script '/sample/bin/buildout'.
----------------------------------------------------------------------
File
"/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/src/zc/buildout/tests.py",
line 609, in zc.buildout.tests.test_bootstrap_py
Failed example:
ls(sample_buildout, 'eggs')
Expected:
- setuptools.eggpyN.N.egg
d zc.buildout.eggpyN.N.egg
Got:
d setuptools.eggpyN.N.egg
d zc.buildout.eggpyN.N.egg
zip_safe flag not set; analyzing archive contents...
Failure in test
/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/zc.recipe.egg_/src/zc/recipe/egg/api.txt
Failed doctest test for api.txt
File
"/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/zc.recipe.egg_/src/zc/recipe/egg/api.txt",
line 0
----------------------------------------------------------------------
File
"/Users/optilude/Development/Plone/Code/Build/buildout/zc.buildout/zc.recipe.egg_/src/zc/recipe/egg/api.txt",
line 97, in api.txt
Failed example:
cat(sample_buildout, '.installed.cfg')
Expected:
[buildout]
installed_develop_eggs = /sample-buildout/develop-eggs/sample.egg-link
parts = sample-part
<BLANKLINE>
[sample-part]
__buildout_installed__ =
__buildout_signature__ = sample- zc.recipe.egg-_b =
/sample-buildout/bin
_d = /sample-buildout/develop-eggs
_e = /sample-buildout/eggs
bin-directory = /sample-buildout/bin
develop-eggs-directory = /sample-buildout/develop-eggs
eggs = demo<0.3
eggs-directory = /sample-buildout/eggs
executable = python
extras = other
find-links = http://localhost:8080/
index = http://localhost:8080/index
recipe = sample
Got:
[buildout]
installed_develop_eggs = /sample-buildout/develop-eggs/sample.egg-link
parts = sample-part
<BLANKLINE>
[sample-part]
__buildout_installed__ =
__buildout_signature__ = sample- zc.recipe.egg-_b =
/sample-buildout/bin
_d = /sample-buildout/develop-eggs
_e = /sample-buildout/eggs
bin-directory = /sample-buildout/bin
develop-eggs-directory = /sample-buildout/develop-eggs
eggs = demo<0.3
eggs-directory = /sample-buildout/eggs
executable =
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
extras = other
find-links = http://localhost:8080/
index = http://localhost:8080/index
recipe = sample
Ran 360 tests with 2 failures and 0 errors in 5 minutes 0.629 seconds.
Tearing down left over layers:
Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig