From 3c749cba527140aa5d8a5b72ecea3eb87b0a5f8a Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Sat, 11 Aug 2007 16:05:27 +0000 Subject: Bake the version number into the source during packaging. --- lib/sqlalchemy/__init__.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'lib/sqlalchemy/__init__.py') 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' -- cgit v1.2.1