from imp import load_source
from os.path import abspath, dirname, join
-
-try:
- from setuptools import setup
- is_setuptools = True
-except ImportError:
- from distutils.core import setup
- is_setuptools = False
-
-kw = {}
-if is_setuptools:
- kw['python_requires'] = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*'
+from setuptools import setup
versionpath = join(abspath(dirname(__file__)), '{project}', '__version__.py')
{project}_version = load_source('{project}_version', versionpath)
packages=['{project}'],
package_data={'{project}': []},
scripts=[],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*',
requires=[],
- **kw
)