[PEAK] setuptools and subversion 1.4

Phillip J. Eby pje at telecommunity.com
Sun Sep 17 12:23:20 EDT 2006


At 06:00 PM 9/17/2006 +0300, Marc-Antoine Parent wrote:
>> >I think that, as a more robust, strategy, you might consider calling
>> >'svn info' and parsing the result. It can be done even if the net is
>> >down.
>>
>>Alas, my understanding is that the output from "svn info" is
>>locale-specific; in fact we used to use that, then switched to parsing
>>"entries".
>
>Which ends up being version-specific unfortunately.
>I believe the locale-specificity could simply solved by setting
>LC_ALL=C in the environment vars of the subprocess, no?

Dunno.  But you didn't mention if the new entries format was working 
properly for sdist and related operations (like finding what data files 
exist).  So I downloaded SVN 1.4, and it turns out that sdist needs fixing 
as well.

It also appears as though I could've used 'svnversion' instead of 'svn 
info', and svnversion doesn't have any locale issues.  On the other hand, 
I'd rather not depend on running a command-line tool during egg_info, due 
to the circumstances under which it can run.  For example, if I tarball up 
a project checked out of Subversion and give it to you to do something 
with, and you don't have subversion installed, it would fail.  Whereas the 
parsing approach will work even if you don't have subversion.

Anyway, I've now updated both the 0.7a1 and 0.6c3 trunks to support the svn 
1.4 working copy format, both for finding files and getting the current 
revision.  Warnings will be issued if they come out with a new working copy 
format whose "entries" file doesn't start with either '8' or '<?xml'.




More information about the PEAK mailing list