forked from toymachine/concurrence
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (41 loc) · 1.89 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
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from distutils.core import Extension
from Pyrex.Distutils import build_ext
#use default libevent include and library dirs
libevent_include_dirs = []
libevent_library_dirs = []
#uncomment these if you libevent is in a differenct path (specify your specific dirs)
#libevent_include_dirs = ['/opt/libevent/include']
#libevent_library_dirs = ['/opt/libevent/lib']
VERSION = '0.3.1' #must be same as concurrence.__init__.py.__version__
setup(
name = "concurrence",
version=VERSION,
author='Henk Punt',
author_email='henkpunt@gmail.com',
license = 'New BSD',
url='http://opensource.hyves.org/concurrence',
download_url='http://concurrence.googlecode.com/files/concurrence-%s.tar.gz' % VERSION,
description='Concurrence is a framework for creating massively concurrent network applications in Python',
package_dir = {'':'lib'},
packages = find_packages('lib'),
ext_modules=[
Extension("concurrence._event", ["lib/concurrence/concurrence._event.pyx"], include_dirs = libevent_include_dirs, library_dirs = libevent_library_dirs, libraries = ["event"]),
Extension("concurrence.io._io", ["lib/concurrence/io/concurrence.io._io.pyx", "lib/concurrence/io/io_base.c"]),
Extension("concurrence.database.mysql._mysql", ["lib/concurrence/database/mysql/concurrence.database.mysql._mysql.pyx"],
include_dirs=['lib/concurrence/io']
),
],
cmdclass = {'build_ext': build_ext},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'],
)