diff options
| author | Jason Kirtland <jek@discorporate.us> | 2007-08-11 16:05:27 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2007-08-11 16:05:27 +0000 |
| commit | 3c749cba527140aa5d8a5b72ecea3eb87b0a5f8a (patch) | |
| tree | 4f4e8ade9a9ebdd01f1892af13577184712a0f9c /lib/sqlalchemy/__init__.py | |
| parent | ac219b0192814cea0611f7251f7bb3927e5c3201 (diff) | |
| download | sqlalchemy-3c749cba527140aa5d8a5b72ecea3eb87b0a5f8a.tar.gz | |
Bake the version number into the source during packaging.
Diffstat (limited to 'lib/sqlalchemy/__init__.py')
| -rw-r--r-- | lib/sqlalchemy/__init__.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/sqlalchemy/__init__.py b/lib/sqlalchemy/__init__.py index 6e95fd7e1..ab12ecf4b 100644 --- a/lib/sqlalchemy/__init__.py +++ b/lib/sqlalchemy/__init__.py @@ -7,22 +7,7 @@ from sqlalchemy.types import * from sqlalchemy.sql import * from sqlalchemy.schema import * - from sqlalchemy.engine import create_engine -def __figure_version(): - try: - from pkg_resources import require - import os - # NOTE: this only works when the package is either installed, - # or has an .egg-info directory present (i.e. wont work with raw SVN checkout) - info = require('sqlalchemy')[0] - if os.path.dirname(os.path.dirname(__file__)) == info.location: - return info.version - else: - return '(not installed)' - except: - return '(not installed)' - -__version__ = __figure_version() - + +__version__ = 'svn' |
