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-clean(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-fmt(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-self(1), hatch-shell(1), hatch-status(1), hatch-test(1), hatch-version(1)

hatch(1)

Referenced By

hatch(1), hatch-clean(1), hatch-config(1), hatch-dep(1), hatch-env(1), hatch-fmt(1), hatch-new(1), hatch-project(1), hatch-publish(1), hatch-python(1), hatch-run(1), hatch-shell(1), hatch-status(1), hatch-version(1).

August 2024