blob: 2a459d37626c8b64fe8848920498cd18358d08a0 [file] [log] [blame]
Radek Krejcic61f0b42017-06-07 13:21:41 +02001from distutils.core import setup, Extension
2
3netconf2Module = Extension("netconf2",
Radek Krejcie0854c02017-10-10 21:11:29 +02004 sources=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.c",
5 "${CMAKE_CURRENT_SOURCE_DIR}/session.c",
6 "${CMAKE_CURRENT_SOURCE_DIR}/ssh.c",
7 "${CMAKE_CURRENT_SOURCE_DIR}/tls.c",
8 "${CMAKE_CURRENT_SOURCE_DIR}/rpc.c"
9 ],
10 depends=["${CMAKE_CURRENT_SOURCE_DIR}/netconf.h",
11 "${CMAKE_CURRENT_SOURCE_DIR}/session.h",
12 "${CMAKE_CURRENT_COURCE_DIR}/rpc.h"
13 ],
Radek Krejcic61f0b42017-06-07 13:21:41 +020014 libraries=["netconf2"],
15 extra_compile_args=["-Wall", "-I${CMAKE_CURRENT_SOURCE_DIR}/../src/", ],
16 extra_link_args=["-L${CMAKE_CURRENT_BINARY_DIR}/.."],
17 )
18
19setup(name='netconf2',
20 version='${LIBNETCONF2_VERSION}',
21 author='Radek Krejci',
22 author_email='rkrejci@cesnet.cz',
23 description='libnetconf2 Python bindings.',
24 long_description = 'TBD',
25 url='https://github.com/CESNET/libnetconf2',
26 ext_modules=[netconf2Module],
27 platforms=['Linux'],
28 license='BSD License',
29 )