tests/setup.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 
3 from distutils.core import setup
4 from distutils.extension import Extension
5 import os
6 
7 opcua_server_path = os.environ['OPCUA_Server_PATH']
8 
9 sources = [
10  '../src/py_opcua_module.cpp',
11  '../src/py_opcua_enums.cpp',
12  '../src/py_opcua_subscriptionclient.cpp',
13  'test_computer.cpp',
14 ]
15 
16 
17 includes = [
18  opcua_server_path + '/include',
19 ]
20 
21 cpp_flags = [
22  '-std=c++11',
23  '-DMODULE_NAME=test_opcua',
24  '-Wl,--no-undefined',
25 ]
26 
27 libs = [
28  'opcuaclient',
29  'opcuaserver',
30  'stdc++',
31  'pthread',
32  'boost_python',
33 ]
34 
35 ldirs = [
36  opcua_server_path + '/lib',
37  opcua_server_path + '/.libs',
38 ]
39 
40 opcua_client = Extension(
41  'test_opcua',
42  sources,
43  include_dirs = includes,
44  extra_compile_args = cpp_flags,
45  library_dirs = ldirs,
46  libraries = libs,
47  language = 'c++')
48 
49 modules = [opcua_client]
50 
51 setup(name='test_opcua',
52  version='0.1.2',
53  description='Client interface for OPC UA servers.',
54  author='Alexander Rykovanov',
55  author_email='rykovanov.as@gmail.com',
56  url='https://github.com/treww/opcua-python',
57  license = 'LGPL',
58  ext_modules = modules
59  )
60 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:07