[Python-Dev] buildno (Was: [Python-checkins] commit of r41907- python/trunk/Makefile.pre.in)

"Martin v. Löwis" martin at v.loewis.de
Thu Jan 5 00:36:40 CET 2006


Barry Warsaw wrote:
> Unfortunately, /usr/bin/type doesn't seem to accept the -t flag for me
> on Solaris 9.  Okay, so what's the best (read: portable) way to do this?

The portable way would be to check for svnversion in configure, and then
only use it if it was found. You could also check for .svn in configure,
and generate the entire buildno generation.

OTOH, I also think we should get rid of buildno entirely. Instead,
svnversion should be compiled into the object file, or, if it is absent,
$Revision$ should be used; the release process should be updated to
force a commit to the tag/Modules/buildno.c right after creating the
tag. sys.build_number should go, and be replaced with sys.svn_info,
which should also include the branch from which the checkout/export
was made. $Revision$ should only be trusted if it comes from a
tag/.

Should I write a PEP for that?

Regards,
Martin


More information about the Python-Dev mailing list