]> git.phdru.name Git - sqlconvert.git/commitdiff
Require sqlparse
authorOleg Broytman <phd@phdru.name>
Sat, 23 Jul 2016 00:18:04 +0000 (03:18 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 23 Jul 2016 00:18:04 +0000 (03:18 +0300)
requirements.txt
setup.py

index beed0554c1dee36c62ce934bb621461b246e7c4a..e0fc4e7182e3bea28a23a652fb4da634e5cf4132 100644 (file)
@@ -2,3 +2,4 @@
 --find-links=http://phdru.name/Software/Python/
 --install-option="--compile"
 
+sqlparse
index d6936d2b131631c3edb7eebc203a89fc9ad8f264..277a9737f3bf2680fffaeca545cdd171c399fcac 100755 (executable)
--- 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)