-
Notifications
You must be signed in to change notification settings - Fork 360
/
Copy pathsetup.py
46 lines (40 loc) · 1.19 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
43
44
45
46
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
import sys
import warnings
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="6.0.1",
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="https://github.com/wit-ai/pywit",
)