From b4bfb63ecab0ee594247c576a3414c4cdd133058 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 23 Jul 2016 03:18:04 +0300 Subject: [PATCH] Require sqlparse --- requirements.txt | 1 + setup.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5