[Distutils] buildout directory computation change
kiorky
kiorky at cryptelium.net
Mon Jul 28 19:14:52 CEST 2008
Jim Fulton a écrit :
>
> On Jul 28, 2008, at 11:28 AM, whit morriss wrote:
>
>> it looks like something changes in how some vars (ie
>> buildout:egg-directory) gets computed between 1.0.2 and 1.1.0
>>
>> OSError: [Errno 2] No such file or directory:
>> '/Users/whit/dev/geo/alm3//Users/whit/dev/geo/alm3/develop-eggs'
>>
>> is the resulting error for:
>>
>> eggs-directory = ${buildout:directory}/develop-eggs
>>
>> instead of:
>>
>> '/Users/whit/dev/geo/alm3/develop-eggs'
>>
>> (which I believe works until at least 1.0.2)
>>
>> buildout seems to implicitly assume I want buildout:directory
>> appended. is this a feature, bug, or something I can turn off?
>
>
> The way buildout normalizes buildout paths did change in 1.1.0. I
> haven't seen this error and can't see, in the code, while this error
> would occur.
>
> Can you provide a buildout I can use to reproduce this problem?
>
> Jim
>
> --
> Jim Fulton
> Zope Corporation
>
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
I saw this problem which broke minitage too a week ago.
Jim, you can see all the buildouts in there : http://trac.minitage.org/trac/browser
like:http://trac.minitage.org/trac/browser/minitage/buildouts/dependencies/bzip2-1.0.4/buildout.cfg.
They will all fail with zc.buildout >= 1.1
What fails there :
eggs-directory and develop-directory will compute both to:
buildoutdir/buildoutdir/../../eggs/*cache
instead of :
buildoutdir/../../eggs/*cache
I work arounded them with a relative path.
In zc/buildout/buildout.py, at l.135 , you assume buildout path is a prefix for all
directories which causes this problem.
--
--
Cordialement,
KiOrKY
GPG Key FingerPrint: 0x1A1194B7681112AF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080728/f6e147f2/attachment.pgp>
More information about the Distutils-SIG
mailing list