Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (39 loc) · 1.32 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (39 loc) · 1.32 KB
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
import sys
from glob import glob
from setuptools import setup, Extension
version = '0.2.2'
# setuptools DWIM monkey-patch madness: http://dou.bz/37m3XL
if 'setuptools.extension' in sys.modules:
m = sys.modules['setuptools.extension']
m.Extension.__dict__ = m._Extension.__dict__
def readme():
with open('README.rst') as f:
return f.read()
include_dirs = ["include"]
sources = glob("*.pyx") + glob("src/*.c")
libraries = ["dl"]
setup(
name="greenify",
version=version,
description = "Make C module compatible with gevent at runtime.",
long_description=readme(),
platforms=['Linux'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Cython',
'Programming Language :: C',
'Topic :: Software Development :: Libraries'
],
author="Zhongbo Tian",
author_email="tianzhongbo@douban.com",
url="https://github.com/douban/greenify",
download_url = 'https://github.com/douban/greenify/archive/%s.tar.gz' % version,
setup_requires=['setuptools_cython', 'Cython >= 0.18'],
install_requires=['gevent'],
ext_modules=[
Extension('greenify', sources, include_dirs=include_dirs,
libraries=libraries)
]
)