-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (58 loc) · 2.01 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
import codecs
from setuptools import setup, Extension, find_packages
#from distutils.command.install import INSTALL_SCHEMES
#for scheme in INSTALL_SCHEMES.values():
#scheme['data'] = scheme['purelib']
m1 = Extension(
'mrworkserver.internals',
sources = [
'./src/mrworkserver/internals/dec.c',
'./src/mrworkserver/internals/module.c',
'./src/mrworkserver/internals/protocol.c',
'./src/mrworkserver/internals/ws.c',
'./src/mrworkserver/internals/unpack.c',
],
include_dirs = ['./src/mrworkserver/internals'],
extra_compile_args = ['-msse4.2', '-mavx2', '-mbmi2', '-Wunused-variable','-std=c99','-Wno-discarded-qualifiers', '-Wno-unused-variable','-Wno-unused-function'],
extra_link_args = [],
#extra_link_args = ['-lasan'],
define_macros = [('DEBUG_PRINT',1)]
)
with codecs.open('README.md', encoding='utf-8') as f:
README = f.read()
setup(
name="mrworkserver",
version="0.12",
license='MIT',
description='A python work server written in C',
long_description = README,
long_description_content_type='text/markdown',
ext_modules = [m1],
package_dir={'':'src'},
packages=find_packages('src'),# + ['prof'],
#data_files=[('', ['html'])],
include_package_data=True,
#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/mrworkserver/',
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'
]
)