[Python-Dev] Expose Subversion revision number to Python

"Martin v. Löwis" martin at v.loewis.de
Sun Dec 18 23:48:27 CET 2005


Barry Warsaw wrote:
> Yes, here's my thought: I have a mod to Makefile.pre.in and
> getbuildinfo.c so that when we don't find .svn directory, we don't
> define the BUILD macro when we compile getbuildinfo.c.  Then, in that
> file we have something like:
> 
> #ifndef BUILD
> #define BUILD "$Revision$"
> #endif

What does that achieve? It will give you the latest revision at which
getbuildinfo was changed (currently 41744).

Regards,
Martin


More information about the Python-Dev mailing list