Make asset compilation part of the build_wheel
hatchling build_hook
#45929
Labels
area:dev-env
CI, pre-commit, pylint and other changes that do not change the behavior of the final code
area:UI
Related to UI/UX. For Frontend Developers.
Milestone
Currently, we have
custom
build hook in hatchling that performs two things:We are not using
npm
butpnpm
in airflowui
- new Airflow 3.0 UI and we are going to drop the oldwww
-npm
driven environment. PNPM is way more portable and easy to install and 2x faster thannpm
so we could potentially move bothgit
and asset compilation tobuild_wheel
build hook, so that asset compilation happens always when airlfow is installed for editable installation or when wheel is built.We could install pnpm via https://pnpm.io/installation#on-posix-systems and do the
git
bit might be optionally skipped ifgit
is not available.This way the contributors will not have to worry about compiling assets when installing airlfow locally for development or building wheels - the compilation would happen automatically when
pip install -e .
oruv sync
or and PEP compliant "build wheel` happens.This has the drawback of longer first-time installation and needs a bit smart determination on how to inform that the package needs to be reinstalled / buiild_hook run during the development.
The text was updated successfully, but these errors were encountered: