[Distutils] [buildout] windows/jenkins annoyance

Philippe Ombredanne pombredanne at nexb.com
Mon Jan 21 10:39:54 CET 2013


On Sat, Jan 19, 2013 at 11:54 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> On 19/01/2013 21:16, Jim Fulton wrote:
>> Another option would be to pin setuptools in your buildout.cfg to avoid the upgrade.
> Just a note to say that this didn't work:
> http://jenkins.simplistix.co.uk/job/testfixtures-buildout/PYTHON=2.7,label=windows/167/console
> The problem is that bootstrap.py *always* dowloads setuptools. I wish it
> didn't do that if the right version of setuptools was already in the egg cache...

You could  try to pin the distribute or setuptools version used by
bootstrap this way:
python bootstrap.py --version 1.7.0 \
 --distribute --setup-source=<path to script>/ez_setup.py \   <-- saved locally
 --download-base=<path to download-cache>/dist/    <-- with a saved
locally version of setuptools

and then have cached version of the setup and archive for distribute
and setuptools, and use a buildout with

1/ pinned version of distribute or setuptools
2/ these extra buildout config info.

Something along these lines:

[buildout]
install-from-cache = true
newest = false
allow-picked-versions = false
download-cache = <download cache path>
find-links = file:///<download cache path>/dist/
versions = versions
[versions]
setuptools = 0.6c11

Not sure it would help, but worth a try

-- 
Philippe Ombredanne

+1 650 799 0949 | pombredanne at nexB.com
DejaCode Enterprise at http://www.dejacode.com
nexB Inc. at http://www.nexb.com


More information about the Distutils-SIG mailing list