forked from wit-ai/pywit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 loc) · 1.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
install_requires = ['prompt_toolkit']
if sys.version_info < (2, 6):
warnings.warn(
'Python 2.5 is no longer officially supported by Wit. '
'If you have any questions, please file an issue on Github or '
'contact us at [email protected].',
DeprecationWarning)
install_requires.append('requests >= 0.8.8, < 0.10.1')
install_requires.append('ssl')
else:
install_requires.append('requests >= 0.8.8')
if sys.version_info < (3, 0):
try:
from util import json
except ImportError:
install_requires.append('simplejson')
setup(
name='wit',
version='4.3.0',
description='Wit SDK for Python',
author='The Wit Team',
author_email='[email protected]',
cmdclass={'build_py': build_py},
install_requires=install_requires,
packages=['wit'],
url='http://github.com/wit-ai/pywit',
)