-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
68 lines (64 loc) · 2.32 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
62
63
64
65
66
67
from setuptools import setup, Extension, find_packages
m1 = Extension(
'mrhttp.internals',
sources = [
'./src/mrhttp/internals/module.c',
'./src/mrhttp/internals/utils.c',
'./src/mrhttp/internals/app.c',
'./src/mrhttp/internals/protocol.c',
'./src/mrhttp/internals/mrqprotocol.c',
'./src/mrhttp/internals/mrqclient.c',
'./src/mrhttp/internals/memcachedclient.c',
'./src/mrhttp/internals/memprotocol.c',
'./src/mrhttp/internals/mrcacheclient.c',
'./src/mrhttp/internals/mrcacheprotocol.c',
'./src/mrhttp/internals/parser.c',
'./src/mrhttp/internals/request.c',
'./src/mrhttp/internals/response.c',
'./src/mrhttp/internals/router.c',
'./src/mrhttp/internals/mrhttpparser.c',
#'./src/mrhttp/cpp/cpptest.cpp'
'./src/mrhttp/internals/hash/city.c',
'./src/mrhttp/internals/hash/assoc.c',
'./src/mrhttp/utils/unpack.c',
],
include_dirs = ['./src/mrhttp/internals','./src/mrhttp/utils'],
extra_compile_args = ['-msse4.2', '-mavx2', '-mbmi2', '-Wunused-variable','-std=gnu99','-Wno-discarded-qualifiers', '-Wno-unused-variable','-Wno-unused-function'],
extra_link_args = [],
#extra_link_args = ['-lasan'],
define_macros = [('DEBUG_PRINT',1)]
)
setup(
name="mrhttp",
version="0.13",
license='MIT',
description='A python web framework written in C',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
ext_modules = [m1],
package_dir={'':'src'},
packages=find_packages('src'),# + ['prof'],
#package_data={'prof': ['prof.so']},
install_requires=[
#'uvloop<0.9.0',
'uvloop>0.9.0',
],
platforms='x86_64 Linux and MacOS X',
url='http://github.com/MarkReedZ/mrhttp/',
author='Mark Reed',
author_email='[email protected]',
keywords=['web', 'asyncio'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP'
]
)