Deployment
The user-mode library comes in two pieces, both of which must be deployed with the application:
- A Python module named cbfssync.py.
- A native dynamic library (unmanaged), named as follows:
- Windows: pycbfssync24.dll (available for x64 and x86 processor architectures)
- Linux: libpycbfssync.so.24.0 (available for x64 and x86 processor architectures)
- macOS: libpycbfssync24.0.dylib (available for x64 and ARM64 processor architectures)
Both the module and the native library are included in the product's Python package, <install_dir>\cbfssync-24.0.xxxx.tar.gz, which should be installed using pip:
cd C:\path\to\install_dir
python -m pip install cbfssync-24.0.xxxx.tar.gz
Once the product's Python package has been installed, the module can be imported and used: from cbfssync import *. Nothing else is required to deploy the application.
As an alternative to installing the module using pip, you can utilize the built-in setuptools module to package the module for deployment or install it to the machine.
python setup.py build --build-lib=<app_dir>
The above setup command packages the module and native library for deployment. A folder is created in the app_dir directory with the module and the native library packaged inside.