diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-15 21:23:55 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-15 21:23:55 +0000 |
| commit | 4e2d54fdd5f3a156f742e19831d922afcfaa154a (patch) | |
| tree | 145c821553c8c2af30e3212c42bb7b18d22a25b1 /setup.py | |
| parent | c712af4d4ccea6f5dc7976d33637fe3e1a7df99f (diff) | |
| download | sqlalchemy-4e2d54fdd5f3a156f742e19831d922afcfaa154a.tar.gz | |
removed dependencies on setuptools. distutils will be used if setuptools is not
present.
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -1,17 +1,15 @@ -from ez_setup import use_setuptools -use_setuptools() import os import sys import re -from os import path -from setuptools import setup, find_packages -from distutils.command.build_py import build_py as _build_py -from setuptools.command.sdist import sdist as _sdist +try: + from setuptools import setup +except ImportError: + from distutils.core import setup if sys.version_info < (2, 4): raise Exception("SQLAlchemy requires Python 2.4 or higher.") -v = file(path.join(path.dirname(__file__), 'lib', 'sqlalchemy', '__init__.py')) +v = file(os.path.join(os.path.dirname(__file__), 'lib', 'sqlalchemy', '__init__.py')) VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) v.close() @@ -21,12 +19,7 @@ setup(name = "SQLAlchemy", author = "Mike Bayer", author_email = "mike_mp@zzzcomputing.com", url = "http://www.sqlalchemy.org", - packages = find_packages('lib'), package_dir = {'':'lib'}, - entry_points = { - 'sqlalchemy.databases': [ - '%s = sqlalchemy.databases.%s:dialect' % (f,f) for f in - ['sqlite', 'postgres', 'mysql', 'oracle', 'mssql', 'firebird']]}, license = "MIT License", long_description = """\ SQLAlchemy is: |
