Go to the documentation of this file.00001
00002
00003 from distutils.core import setup
00004 from distutils.extension import Extension
00005 import os
00006
00007 opcua_server_path = os.environ['OPCUA_Server_PATH']
00008
00009 sources = [
00010 '../src/py_opcua_module.cpp',
00011 '../src/py_opcua_enums.cpp',
00012 '../src/py_opcua_subscriptionclient.cpp',
00013 'test_computer.cpp',
00014 ]
00015
00016
00017 includes = [
00018 opcua_server_path + '/include',
00019 ]
00020
00021 cpp_flags = [
00022 '-std=c++11',
00023 '-DMODULE_NAME=test_opcua',
00024 '-Wl,--no-undefined',
00025 ]
00026
00027 libs = [
00028 'opcuaclient',
00029 'opcuaserver',
00030 'stdc++',
00031 'pthread',
00032 'boost_python',
00033 ]
00034
00035 ldirs = [
00036 opcua_server_path + '/lib',
00037 opcua_server_path + '/.libs',
00038 ]
00039
00040 opcua_client = Extension(
00041 'test_opcua',
00042 sources,
00043 include_dirs = includes,
00044 extra_compile_args = cpp_flags,
00045 library_dirs = ldirs,
00046 libraries = libs,
00047 language = 'c++')
00048
00049 modules = [opcua_client]
00050
00051 setup(name='test_opcua',
00052 version='0.1.2',
00053 description='Client interface for OPC UA servers.',
00054 author='Alexander Rykovanov',
00055 author_email='rykovanov.as@gmail.com',
00056 url='https://github.com/treww/opcua-python',
00057 license = 'LGPL',
00058 ext_modules = modules
00059 )
00060