setup.py 828 B

12345678910111213141516171819202122232425262728
  1. from setuptools import setup, Extension
  2. setup(
  3. name='python-ESL',
  4. version='1.4.18',
  5. author='FreeSWITCH Developers',
  6. description='FreeSWITCH Event Socket Library for Python',
  7. url='https://github.com/sangoma/python-ESL',
  8. download_url='https://github.com/sangoma/python-ESL/tarball/1.4.18',
  9. ext_modules=[
  10. Extension(
  11. '_ESL',
  12. sources=['esl.c',
  13. 'esl_buffer.c',
  14. 'esl_config.c',
  15. 'esl_event.c',
  16. 'esl_json.c',
  17. 'esl_threadmutex.c',
  18. 'esl_oop.cpp',
  19. 'ESL.i'],
  20. swig_opts=['-c++', '-DMULTIPLICITY',
  21. '-threads', '-I.'],
  22. extra_compile_args=['-I.']
  23. )
  24. ],
  25. py_modules=["ESL"]
  26. )