1HATCH-BUILD(1)                   User Commands                  HATCH-BUILD(1)
2
3
4

NAME

6       hatch build – Build a project
7

SYNOPSIS

9       hatch build [OPTIONS] [LOCATION]
10

OPTIONS

12       -t, --target TEXT
13              The  target  to build, overriding project defaults.  This may be
14              selected multiple times e.g. -t sdist -t wheel
15
16       --hooks-only
17              Whether  or  not  to  only  execute  build   hooks   [env   var:
18              HATCH_BUILD_HOOKS_ONLY]
19
20       --no-hooks
21              Whether    or   not   to   disable   build   hooks   [env   var:
22              HATCH_BUILD_NO_HOOKS]
23
24       --ext  Whether or not to only execute build hooks for distributing  bi‐
25              nary  Python packages, such as compiling extensions.  Equivalent
26              to --hooks-only -t wheel
27
28       -c, --clean
29              Whether or not existing artifacts should first be  removed  [env
30              var: HATCH_BUILD_CLEAN]
31
32       --clean-hooks-after
33              Whether or not build hook artifacts should be removed after each
34              build [env var: HATCH_BUILD_CLEAN_HOOKS_AFTER]
35
36       -h, --help
37              Show a help message and exit
38

ENVIRONMENT

40       HATCH_BUILD_HOOKS_ONLY
41              Whether  or  not  to   only   execute   build   hooks   [option:
42              --hooks-only]
43
44       HATCH_BUILD_NO_HOOKS
45              Whether or not to disable build hooks [option: --no-hooks]
46
47       HATCH_BUILD_CLEAN
48              Whether  or  not existing artifacts should first be removed [op‐
49              tion: -c, --clean]
50
51       HATCH_BUILD_CLEAN_HOOKS_AFTER
52              Whether or not build hook artifacts should be removed after each
53              build [option: --clean-hooks-after]
54

SEE ALSO

56       hatch-clean(1),     hatch-config(1),     hatch-dep(1),    hatch-env(1),
57       hatch-new(1),   hatch-project(1),    hatch-publish(1),    hatch-run(1),
58       hatch-shell(1), hatch-status(1), hatch-version(1)
59
60       hatch(1)
61
62
63
64                                 October 2022                   HATCH-BUILD(1)
Impressum