[ZODB-Dev] ZODB.__version__

2009-06-08 Thread Pedro Ferreira
Hello, I've noticed that the __version__ variable hasn't been updated lately: i.e. on 3.8.1: import ZODB ZODB.__version__ '3.7.0b3' And on 3.9x it doesn't even exist. Was it officially deprecated? If so, is there any other way to check the library version? Thanks in advance, Pedro --

Re: [ZODB-Dev] ZODB.__version__

2009-06-08 Thread Jeff Shell
You can try the `pkg_resources` APIs and get the version from the setuptools data. import pkg_resources pkg_resources.require('ZODB3')[0].version '3.8.1' Which only works if ZODB3 was installed via buildout/setuptools, of course. On Jun 8, 2009, at 2:30 AM, Pedro Ferreira wrote:

Re: [ZODB-Dev] ZODB.__version__

2009-06-08 Thread Jim Fulton
On Jun 8, 2009, at 4:30 AM, Pedro Ferreira wrote: Hello, I've noticed that the __version__ variable hasn't been updated lately: i.e. on 3.8.1: import ZODB ZODB.__version__ '3.7.0b3' And on 3.9x it doesn't even exist. Was it officially deprecated? Yes If so, is there any other way