Radek Krejci | c61f0b4 | 2017-06-07 13:21:41 +0200 | [diff] [blame] | 1 | from distutils.core import setup, Extension |
| 2 | |
| 3 | netconf2Module = Extension("netconf2", |
| 4 | sources=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.c", "${CMAKE_CURRENT_SOURCE_DIR}/session.c", |
| 5 | "${CMAKE_CURRENT_SOURCE_DIR}/ssh.c", "${CMAKE_CURRENT_SOURCE_DIR}/tls.c"], |
| 6 | depends=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.h"], |
| 7 | libraries=["netconf2"], |
| 8 | extra_compile_args=["-Wall", "-I${CMAKE_CURRENT_SOURCE_DIR}/../src/", ], |
| 9 | extra_link_args=["-L${CMAKE_CURRENT_BINARY_DIR}/.."], |
| 10 | ) |
| 11 | |
| 12 | setup(name='netconf2', |
| 13 | version='${LIBNETCONF2_VERSION}', |
| 14 | author='Radek Krejci', |
| 15 | author_email='rkrejci@cesnet.cz', |
| 16 | description='libnetconf2 Python bindings.', |
| 17 | long_description = 'TBD', |
| 18 | url='https://github.com/CESNET/libnetconf2', |
| 19 | ext_modules=[netconf2Module], |
| 20 | platforms=['Linux'], |
| 21 | license='BSD License', |
| 22 | ) |