hatch-build - Man Page

hatch build – Build a project

Synopsis

hatch build [Options] [LOCATION]

Options

-t,  --target TEXT

The target to build, overriding project defaults. This may be selected multiple times e.g. -t sdist -t wheel

--hooks-only

Whether or not to only execute build hooks [env var: HATCH_BUILD_HOOKS_ONLY]

--no-hooks

Whether or not to disable build hooks [env var: HATCH_BUILD_NO_HOOKS]

--ext

Whether or not to only execute build hooks for distributing binary Python packages, such as compiling extensions. Equivalent to --hooks-only -t wheel

-c,  --clean

Whether or not existing artifacts should first be removed [env var: HATCH_BUILD_CLEAN]

--clean-hooks-after

Whether or not build hook artifacts should be removed after each build [env var: HATCH_BUILD_CLEAN_HOOKS_AFTER]

-h,  --help

Show a help message and exit

Environment

HATCH_BUILD_HOOKS_ONLY

Whether or not to only execute build hooks [option: --hooks-only]

HATCH_BUILD_NO_HOOKS

Whether or not to disable build hooks [option: --no-hooks]

HATCH_BUILD_CLEAN

Whether or not existing artifacts should first be removed [option: -c, --clean]

HATCH_BUILD_CLEAN_HOOKS_AFTER

Whether or not build hook artifacts should be removed after each build [option: --clean-hooks-after]

See Also

hatch(1)

Referenced By

hatch(1).

March 2022