[Distutils] buildout 1 still not managing to pin buildout to 1.x

Jim Fulton jim at zope.com
Wed Jun 12 03:25:30 CEST 2013


On Tue, Jun 11, 2013 at 7:22 PM, Tres Seaver <tseaver at palladion.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/11/2013 05:27 AM, Chris Withers wrote:
>> On 10/06/2013 18:57, Tres Seaver wrote:
>>> Works for me:
>>>
>>> $ mkdir /tmp/withers $ cd /tmp/withers $ echo "[buildout] parts =">
>>> buildout.cfg $ wget http://downloads.buildout.org/1/bootstrap.py
>>> ... $ /opt/Python-2.5.x/bin/python bootstrap.py
>>
>> Try with 2.7, and also try going from 1 to 2 and back again by
>> switching bootstraps.
>>
>> There's likely something funky going on (.installed.cfg, develop-eggs
>> or some other goat sacrifice in bin/) but it definitely happened.
>
> That same recipe works with 2.7.  In general, the presence of
> .installed.cfg should be thought of as problematic for any big surgery
> (like changing bootstraps, or major versions of buildout), because it
> hampers repeatability in order to make the build run faster.

No. It is not an optimization.  It's there to know what needs to be uninstalled.

It's often OK to just remove it. but by doing so you're forgoing cleanup.

It would be better to uninstall everything with the old buildout:

   bin/buildout buildout:parts=

Before removing the installed file.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton


More information about the Distutils-SIG mailing list