Radek Krejci | c61f0b4 | 2017-06-07 13:21:41 +0200 | [diff] [blame] | 1 | from distutils.core import setup, Extension |
| 2 | |
| 3 | netconf2Module = Extension("netconf2", |
Radek Krejci | e0854c0 | 2017-10-10 21:11:29 +0200 | [diff] [blame] | 4 | sources=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.c", |
Claus Klein | 2209191 | 2020-01-20 13:45:47 +0100 | [diff] [blame] | 5 | "${CMAKE_CURRENT_SOURCE_DIR}/session.c", |
Radek Krejci | e0854c0 | 2017-10-10 21:11:29 +0200 | [diff] [blame] | 6 | "${CMAKE_CURRENT_SOURCE_DIR}/ssh.c", |
| 7 | "${CMAKE_CURRENT_SOURCE_DIR}/tls.c", |
Radek Krejci | 0f3499a | 2017-10-13 13:39:36 +0200 | [diff] [blame] | 8 | "${CMAKE_CURRENT_SOURCE_DIR}/rpc.c", |
| 9 | "${CMAKE_CURRENT_SOURCE_DIR}/err.c" |
Radek Krejci | e0854c0 | 2017-10-10 21:11:29 +0200 | [diff] [blame] | 10 | ], |
| 11 | depends=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.h", |
| 12 | "${CMAKE_CURRENT_SOURCE_DIR}/session.h", |
| 13 | "${CMAKE_CURRENT_COURCE_DIR}/rpc.h" |
| 14 | ], |
Radek Krejci | c61f0b4 | 2017-06-07 13:21:41 +0200 | [diff] [blame] | 15 | libraries=["netconf2"], |
Claus Klein | 2209191 | 2020-01-20 13:45:47 +0100 | [diff] [blame] | 16 | extra_compile_args=["-Wall", "-I${CMAKE_CURRENT_BINARY_DIR}", "-I${LIBYANG_INCLUDE_DIR}", "-I${LIBSSH_INCLUDE_DIR}" @SSH_DEFINE@ @TLS_DEFINE@], |
Radek Krejci | c61f0b4 | 2017-06-07 13:21:41 +0200 | [diff] [blame] | 17 | extra_link_args=["-L${CMAKE_CURRENT_BINARY_DIR}/.."], |
| 18 | ) |
| 19 | |
| 20 | setup(name='netconf2', |
| 21 | version='${LIBNETCONF2_VERSION}', |
| 22 | author='Radek Krejci', |
| 23 | author_email='rkrejci@cesnet.cz', |
| 24 | description='libnetconf2 Python bindings.', |
| 25 | long_description = 'TBD', |
| 26 | url='https://github.com/CESNET/libnetconf2', |
| 27 | ext_modules=[netconf2Module], |
| 28 | platforms=['Linux'], |
| 29 | license='BSD License', |
| 30 | ) |