setup.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 from distutils.core import setup, Extension
00004 import sys
00005 import os
00006 import platform
00007 
00008 opcua_server_path = os.environ.get('OPCUA_Server_PATH','..')
00009 
00010 extra_compile_args = [
00011         '-std=c++11', 
00012   '-pthread',
00013   '-Wall',
00014   '--param=max-vartrack-size=0',
00015 ]
00016 
00017 extra_link_args = [
00018   '-pthread',
00019 ]
00020 
00021 include_dirs = [
00022   os.path.join(opcua_server_path,'include'),
00023 ]
00024 
00025 library_dirs = [
00026   os.path.join(opcua_server_path,'.libs'),
00027   os.path.join(opcua_server_path,'lib'),
00028 ]
00029 
00030 boost_library='boost_python3' if sys.version_info.major == 3 and platform.dist()[0] == 'fedora' else 'boost_python'
00031 
00032 libraries = [
00033   boost_library,
00034   'opcuaclient',
00035   'opcuaserver',
00036 ]
00037 
00038 setup(name='python-freeopcua',
00039   version='0.2',
00040   description='Python bindings to freeopcua.',
00041   author='Matthieu Bec',
00042   author_email='mdcb808@gmail.com',
00043   url='https://github.com/treww/opcua-python',
00044   license = 'LGPL',
00045   ext_modules = [
00046     Extension(
00047       name='opcua', 
00048       sources=[
00049         'src/py_opcua_module.cpp',
00050         'src/py_opcua_enums.cpp',
00051         'src/py_opcua_enums_ObjectId.cpp',
00052         'src/py_opcua_enums_StatusCode.cpp',
00053         'src/py_opcua_enums_AttributeId.cpp',
00054         'src/py_opcua_subscriptionclient.cpp',
00055       ],
00056       include_dirs = include_dirs,
00057       extra_compile_args = extra_compile_args,
00058       extra_link_args = extra_link_args,
00059       library_dirs = library_dirs,
00060       libraries = libraries,
00061     ),
00062   ]
00063 )
00064 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:56