-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
39 lines (34 loc) · 1.12 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
from setuptools import Extension, find_packages, setup
from setuptools.command.install import install
from distutils.command.build import build
class CustomBuild(build):
sub_commands = [
('build_ext', build.has_ext_modules),
('build_py', build.has_pure_modules),
('build_clib', build.has_c_libraries),
('build_scripts', build.has_scripts),
]
esl = Extension(
name='ESL._ESL',
sources=['ESL/esl.c',
'ESL/esl_buffer.c',
'ESL/esl_config.c',
'ESL/esl_event.c',
'ESL/esl_json.c',
'ESL/esl_threadmutex.c',
'ESL/esl_oop.cpp',
'ESL/ESL.i'],
swig_opts=['-classic', '-c++', '-DMULTIPLICITY', '-threads', '-I./ESL'],
extra_compile_args=['-I./ESL']
)
setup(
name='python-ESL',
version='1.4.18',
author='FreeSWITCH Developers',
description='FreeSWITCH Event Socket Library for Python',
url='https://github.com/sangoma/python-ESL',
download_url='https://github.com/sangoma/python-ESL/tarball/1.4.18',
cmdclass={'build': CustomBuild},
ext_modules=[esl],
packages=['ESL'],
)