-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
37 lines (28 loc) · 824 Bytes
/
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
import sys
from distutils.core import setup
from distutils.core import Extension
USE_CYTHON = True
ext = ['c', 'pyx'][int(USE_CYTHON)]
"""
extensions
"""
fast_mask = Extension(
'aiowebsockets.fast_mask', sources=['aiowebsockets/fast_mask.c'])
ext_framing = Extension(
'aiowebsockets.framing', ['aiowebsockets/framing.' + ext])
extensions = [fast_mask, ext_framing]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name='aiowebsockets',
version='0.1',
description='Fast Callback Based WebSocket Handler for AsyncIO',
author='Skylar Flare',
url='https://github.com/SkylarFlare/aiowebsockets',
packages=['aiowebsockets'],
install_requires=[
'uvloop'
],
ext_modules=extensions
)