From: Oleg Broytman Date: Sat, 23 Jul 2016 00:18:04 +0000 (+0300) Subject: Require sqlparse X-Git-Tag: 0.0.1~59 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b4bfb63ecab0ee594247c576a3414c4cdd133058;p=sqlconvert.git Require sqlparse --- diff --git a/requirements.txt b/requirements.txt index beed055..e0fc4e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ --find-links=http://phdru.name/Software/Python/ --install-option="--compile" +sqlparse diff --git a/setup.py b/setup.py index d6936d2..277a973 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,10 @@ except ImportError: from distutils.core import setup is_setuptools = False +kw = {} +if is_setuptools: + kw['install_requires'] = ['sqlparse'] + versionpath = join(abspath(dirname(__file__)), 'mysql2sql', '__version__.py') load_source('mysql2sql_version', versionpath) from mysql2sql_version import __version__ # noqa @@ -45,4 +49,4 @@ setup(name='mysql2sql', package_data={'mysql2sql': []}, scripts=[], requires=[], - ) + **kw)