|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Classes | |
| class | ParallelBuildExt |
Functions | |
| find_root () | |
| find_swig () | |
| generate_wrapper () | |
| ssl_paths () | |
| copy_sources () | |
| make_extension () | |
Variables | |
| HERE = os.path.dirname(os.path.abspath(__file__)) | |
| str | PY_LIMITED_API = "0x030A0000" |
| ROOT = find_root() | |
| GEN = os.path.join(HERE, "build", "swig") | |
| SRC = os.path.join(HERE, "build", "cmsdk") | |
| str | CPPFILES |
| str | IS_WIN = "win32" |
| str | IS_MAC = "darwin" |
| IS_LINUX = sys.platform.startswith("linux") | |
| USE_SSL = os.environ.get("CMSDK_NO_SSL", "") not in ("1", "true", "yes") | |
| ext = make_extension() | |
| ext_modules | |
| py_modules | |
| package_dir | |
| cmdclass | |
| options | |
Build the cmsdk3 wheel: the full CMSDK SWIG binding (_cmsdk3 + cmsdk3.py) as one stable-ABI (abi3) extension per platform, so `pip install cmsdk3` works on Python 3.10 and every later 3.x. The extension is compiled from the CMSDK C++ sources directly (no prebuilt libCMSDK.a), with a SWIG wrapper generated here for the target OS (the committed src/cmsdk3_wrap.cxx is LP64/Linux-flavoured). SWIG comes from the PyPI `swig` package (build requirement), so the same recipe runs on Linux, macOS and Windows. Used by cibuildwheel (see pyproject.toml), or locally: `pip wheel CMSDK/python-wheel`. Environment knobs: CMSDK_ROOT path to the CMSDK tree (default: the parent dir, or ./cmsdk-src in an sdist) CMSDK_NO_SSL=1 build without OpenSSL (no https/wss/SSL connections in the binding) CMSDK_OPENSSL_DIR OpenSSL prefix (include/ + lib/) when it is not on the default paths CMSDK_OPENSSL_INCLUDE, CMSDK_OPENSSL_LIB separate include and lib dirs (e.g. Windows release-static/lib) CMSDK_JOBS parallel compile jobs (default: CPU count)
| setup.copy_sources | ( | ) |
Mirror ROOT/src and ROOT/include under build/cmsdk: setuptools refuses absolute source paths, and a relative path with '..' would put object files outside the build dir (or fail across Windows drives).
Definition at line 115 of file setup.py.
Referenced by make_extension().
| setup.find_swig | ( | ) |
Definition at line 63 of file setup.py.
Referenced by generate_wrapper().
| setup.generate_wrapper | ( | ) |
Run SWIG for this OS and make the wrapper limited-API clean (as `make swig3` does).
Definition at line 77 of file setup.py.
References find_swig().
Referenced by make_extension().
| setup.make_extension | ( | ) |
Definition at line 123 of file setup.py.
References copy_sources(), generate_wrapper(), and ssl_paths().
| setup.ssl_paths | ( | ) |
Definition at line 96 of file setup.py.
Referenced by make_extension().
| str setup.CPPFILES |
| setup.ext = make_extension() |