Installation
If you use Fluxon directly, you usually deal with two install bundles:
- Fluxon core artifacts:
fluxon-*.whl,fluxon_pyo3-*.whl,pylib_src.tar.gz,install.py,fluxon_release.sha256 - Runtime packages for
etcd / greptime / TiKV:ext_images.tar.gz
If your Python process only attaches to an existing service plane, you normally only need the Fluxon core package. If you also need to start the KV / MQ / FS service plane yourself, prepare the etcd / greptime / TiKV runtime package as well. See Architecture and Concepts for the role model.
Download from GitHub Releases
https://github.com/<org>/fluxon/releasesInstall Fluxon Core
tar xzf fluxon_release.tar.gz
cd fluxon_release
pip install fluxon-*.whl fluxon_pyo3-*.whlUnpack etcd / greptime / TiKV
tar xzf ext_images.tar.gzExpected files:
ext_images/etcd/etcdext_images/etcd/etcdctlext_images/etcd/start.shext_images/greptime/greptimeext_images/greptime/start.shext_images/tikv/pd-serverext_images/tikv/tikv-serverext_images/tikv/start_pd.shext_images/tikv/start_tikv.shext_images/ext_images.sha256
Fluxon does not replace these external dependencies from inside fluxon_py.runtime.
Build from Source
The main packaging entrypoint is setup_and_pack/pack_release.py. It automatically calls setup_and_pack/pack_release_ext.py and gathers core wheels, pylib_src.tar.gz, install.py, ext_images.tar.gz, and fluxon_release.sha256 into fluxon_release/.
setup_and_pack/pack_release.py: package Fluxon core artifactssetup_and_pack/pack_release_ext.py: exportetcd / greptime / TiKVruntime objects
Related docs:
Artifact List
Fluxon Core
| File | Description |
|---|---|
fluxon-*.whl | Fluxon Python package |
fluxon_pyo3-*.whl | Fluxon Rust bindings (PyO3) |
pylib_src.tar.gz | Python source bundle |
install.py | Release runtime entrypoint |
fluxon_release.sha256 | SHA256 checksum file for all release artifacts |
etcd / greptime / TiKV
| File | Description |
|---|---|
ext_images/etcd/etcd | etcd executable |
ext_images/etcd/etcdctl | etcd CLI |
ext_images/etcd/start.sh | etcd startup script |
ext_images/greptime/greptime | greptime executable |
ext_images/greptime/start.sh | greptime startup script |
ext_images/tikv/pd-server | TiKV PD executable |
ext_images/tikv/tikv-server | TiKV executable |
ext_images/tikv/start_pd.sh | TiKV PD startup script |
ext_images/tikv/start_tikv.sh | TiKV startup script |
ext_images/ext_images.sha256 | SHA256 checksum file for runtime artifacts |
Verify the Install
python3 -c "import fluxon_py; print('ok')"If you also unpacked local runtime artifacts, a quick binary check is:
test -x ext_images/etcd/etcd
test -x ext_images/greptime/greptime
test -x ext_images/tikv/pd-server
test -x ext_images/tikv/tikv-serverSystem Requirements
- Linux only
- Python
>= 3.10 - Prebuilt Python wheels currently use the
manylinux_2_28ABI baseline - When building from source, follow
fluxon_rs/rust-toolchain.toml, currently pinned to1.93.0 - Docker is only required for Quick Start or for running
setup_and_pack/pack_release_ext.py