forked from twisted/txmongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·52 lines (45 loc) · 1.71 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
47
48
49
50
51
52
#!/usr/bin/env python
import sys
import os
import shutil
from setuptools import setup
from setuptools import Feature
from distutils.cmd import Command
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError
from distutils.errors import DistutilsPlatformError, DistutilsExecError
from distutils.core import Extension
requirements = ["twisted", "pymongo"]
try:
import xml.etree.ElementTree
except ImportError:
requirements.append("elementtree")
if sys.platform == 'win32' and sys.version_info > (2, 6):
# 2.6's distutils.msvc9compiler can raise an IOError when failing to
# find the compiler
build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError,
IOError)
else:
build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
setup(
name="txmongo",
version="0.4.3",
description="Asynchronous Python driver for MongoDB <http://www.mongodb.org>",
author="Alexandre Fiori, Christian Hergert",
author_email="fiorix@gmail.com, chris@dronelabs.com",
url="http://github.com/fiorix/mongo-async-python-driver",
keywords=["mongo", "mongodb", "pymongo", "gridfs", "txmongo"],
packages=["txmongo", "txmongo._gridfs"],
install_requires=requirements,
license="Apache License, Version 2.0",
test_suite="nose.collector",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Database"]
)