Installing the Framework as a Wheel¶
From v0.20.0 the Lakeflow Framework ships as a proper Python package
(lakeflow-framework) with a pyproject.toml. For a comparison of all
deployment modes, see Framework Deployment Options.
Installing¶
Core install (no optional extensions):
pip install lakeflow-framework
With community extensions (contrib):
pip install "lakeflow-framework[contrib]"
Everything:
pip install "lakeflow-framework[all]"
Note
[contrib] is currently empty — the contrib subpackage is a
scaffold for future community-maintained integrations. Installing it does
not add dependencies until a contrib module lands.
Checking the installed version¶
From Python:
1 2 | import lakeflow_framework print(lakeflow_framework.__version__) |
From the command line:
python -c "import lakeflow_framework; print(lakeflow_framework.__version__)"
Config and schema resolution¶
When the framework is installed as a wheel, default configuration files and
JSON schemas are bundled inside the package and accessed via
importlib.resources. The resolution order is:
Workspace Files —
{framework_path}/lakeflow_framework/config/default/<file>whenframework.sourcePathis configured and the file exists in workspace files.Package data — bundled defaults from the wheel (or from
src/lakeflow_framework/onsys.pathfor flat deploy).``src/local/config/`` custom override — deep-merged on top when
framework.sourcePathis set and the sparse fragment exists.
See Resolution order (Strategy B) in Framework configuration for the full table.
Using src/local/config/ custom override`` with a wheel¶
If you install the framework as a wheel but still want per-deployment config
overrides, set framework.sourcePath in your pipeline resource YAML to point
to a directory that contains local/config/:
1 2 | spark_conf: framework.sourcePath: /Workspace/Users/${workspace.current_user.userName}/.bundle/${bundle.name}/${bundle.target}/files/src |
Then place sparse override files under that src/local/config/. The
framework will load defaults from the wheel and deep-merge your overrides on
top.
Backward compatibility¶
Existing flat-deploy customers are unaffected. The workspace files first resolution means that if
framework.sourcePathis set and default files are in workspace files, they take priority over the wheel — behavior is identical to earlier releases.Compat shims at the old flat
src/import paths (e.g.from constants import FrameworkPaths) remain until v1.0.0. Preferfrom lakeflow_framework.constants import FrameworkPathsin new code.
See also¶
Framework Deployment Options — deployment modes overview and flat DAB deploy
Deploy framework from local machine — deploy the framework via DAB from your laptop
Framework configuration — full config resolution reference
Versioning - Framework — version pinning and rollback