3 from distutils.core
import setup, Extension
8 opcua_server_path = os.environ.get(
'OPCUA_Server_PATH',
'..')
10 extra_compile_args = [
14 '--param=max-vartrack-size=0',
22 os.path.join(opcua_server_path,
'include'),
26 os.path.join(opcua_server_path,
'.libs'),
27 os.path.join(opcua_server_path,
'lib'),
30 boost_library=
'boost_python3' if sys.version_info[0] == 3
and platform.dist()[0] ==
'fedora' else 'boost_python' 38 if sys.version_info[0] == 2: name=
'python-freeopcua' 39 else: name=
'python{}-freeopcua'.
format(sys.version_info.major)
43 description=
'Python bindings to freeopcua.',
44 author=
'Matthieu Bec',
45 author_email=
'mdcb808@gmail.com',
46 url=
'https://github.com/treww/opcua-python',
52 'src/py_opcua_module.cpp',
53 'src/py_opcua_enums.cpp',
54 'src/py_opcua_enums_ObjectId.cpp',
55 'src/py_opcua_enums_StatusCode.cpp',
56 'src/py_opcua_enums_AttributeId.cpp',
57 'src/py_opcua_subscriptionclient.cpp',
59 include_dirs = include_dirs,
60 extra_compile_args = extra_compile_args,
61 extra_link_args = extra_link_args,
62 library_dirs = library_dirs,
63 libraries = libraries,
std::string format(CStringRef format_str, ArgList args)