[Distutils] Synchronizing version information

Greg Ward gward@python.net
Thu Sep 21 22:12:02 2000

On 20 September 2000, Bastian Kleineidam said:
> >Is there any mechanism in distutils to facilitate such synchronization?
> You could use the attached Template.py file.
> Then copy __init__.py to __init__.py.tmpl, insert $version and execute
> t = Template.Template('__init__.py.tmpl')
> f = open('__init__.py','w')
> f.write(t.fill_in({'version', 0.1})
> f.close
> and $version gets replaced.

As I suggested in my previous post, I'm "-1" on Autoconf-style
substitution on Python source.  It just doesn't seem necessary, and
feels like it introduces all sorts of potential problems