Detailed Description
setup.py file for SWIG
Classes | |
| class | NoSuffixBuilder |
Functions | |
| read (file_name) | |
| read (file_name) | |
| Read a text file and return the content as a string. | |
| get_version () | |
| stage_native_source () | |
| Copy the native source this engine is built from into the package. | |
Function Documentation
◆ get_version()
| get_version | ( | ) |
◆ read()
| read | ( | file_name | ) |
Read a text file and return the content as a string.
◆ stage_native_source()
| stage_native_source | ( | ) |
Copy the native source this engine is built from into the package.
The source is kept once, in the cxx submodule at the root of 51degrees-python (51degrees-cxx), and a package can only build and ship files inside its own folder, so the parts it needs are copied here and the source distribution carries them. Building from a source distribution has the copy already and no cxx folder above it, so nothing is copied then.
Variable Documentation
◆ author
◆ author_email
◆ cflags
| list setup.cflags = [] |
◆ classifiers
◆ clib
| tuple setup.clib |
Initial value:
= ('clib', {
'sources': [
# Common C
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/common/*.c"),
# Device Detection C
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/*.c"),
# Hash C
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.c"),
],
'cflags': cflags
})
◆ cmdclass
| setup.cmdclass |
◆ cpplib
| tuple setup.cpplib |
Initial value:
= ('cpplib', {
'sources': [
# Common C++
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/common/*.cpp"),
# Device Detection C++
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/*.cpp"),
# Hash C++
*glob("src/fiftyone_devicedetection_onpremise/cxx/src/dd/hash/*.cpp"),
],
'cflags': extra_compile_args
})
◆ define_macros
| list setup.define_macros = [] |
◆ description
◆ DeviceDetectionHashEngineModule
| setup.DeviceDetectionHashEngineModule |
Initial value:
= Extension('_DeviceDetectionHashEngineModule',
sources=[
# Python Wrapper
# "fiftyone_devicedetection_onpremise/hash_python.i"
"src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx"
],
define_macros=define_macros,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
language='c++',
)
◆ ext_modules
| setup.ext_modules |
◆ ext_package
| setup.ext_package |
◆ extra_compile_args
| list setup.extra_compile_args = [] |
◆ extra_link_args
| list setup.extra_link_args = [] |
◆ include_package_data
◆ install_requires
◆ keywords
| setup.keywords |
◆ libraries
| setup.libraries |
◆ license
◆ long_description
◆ long_description_content_type
◆ name
◆ package_dir
◆ packages
◆ project_urls
◆ py_modules
| setup.py_modules |
