[Biopython-dev] determining the version
Peter
biopython at maubp.freeserve.co.uk
Wed Oct 1 16:29:02 UTC 2008
Peter wrote:
> From a quick look at approach taken in the matplotlib
> code, we could add something like this to setup.py
>
> __version__ = "Undefined"
> for line in open('Bio/__init__.py'):
> if (line.startswith('__version__')):
> exec(line.strip())
>
> setup(
> name='biopython',
> version=__version__,
> author='The Biopython Consortium',
> ...
>
> I'm happy to deal with this if we are agreed that we
> should add a __version__ to Bio/__init__.py
> (variations on the naming are possible, but this seems
> to be a de-facto standard in python libraries).
Any objections to making this change now?
Peter
More information about the Biopython-dev
mailing list