forked from FSX/momoko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (52 loc) · 1.88 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
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
import os
# The multiprocessingimport is to prevent the following error
# after all the tests have been executed.
# Error in atexit._run_exitfuncs:
# TypeError: 'NoneType' object is not callable
# From: http://article.gmane.org/gmane.comp.python.peak/2509
# Work around setuptools bug
# http://article.gmane.org/gmane.comp.python.peak/2509
import multiprocessing
try:
from setuptools import setup, Extension, Command
except ImportError:
from distutils.core import setup, Extension, Command
dependencies = ['tornado >= 4.0']
psycopg2_impl = os.environ.get('MOMOKO_PSYCOPG2_IMPL', 'psycopg2')
if psycopg2_impl == 'psycopg2cffi':
print('Using psycopg2cffi')
dependencies.append('psycopg2cffi')
elif psycopg2_impl == 'psycopg2ct':
print('Using psycopg2ct')
dependencies.append('psycopg2ct')
else:
print('Using psycopg2')
dependencies.append('psycopg2')
setup(
name='Momoko',
version='2.2.3',
description="Momoko wraps Psycopg2's functionality for use in Tornado.",
long_description=open('README.rst').read(),
author='Frank Smit & Zaar Hai',
author_email='[email protected]',
url='http://momoko.61924.nl/',
packages=['momoko'],
license='MIT',
test_suite='tests',
install_requires=dependencies,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Database',
'Topic :: Database :: Front-Ends'
]
)