You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-9Lines changed: 81 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,17 +97,89 @@ hatch-build \
97
97
--libraries.0.include-dirs cpp,another-dir
98
98
```
99
99
100
-
### Environment Variables
100
+
This CLI is aware of your `pyproject.toml`-configured setup.
101
+
To display help for this, run (note the passthrough `--`):
102
+
103
+
```bash
104
+
hatch-build -- --help
105
+
```
101
106
102
-
`hatch-cpp` will respect standard environment variables for compiler control.
107
+
For example, for the `test_project_basic` in this project's `tests` folder:
108
+
109
+
```raw
110
+
hatch-build --hooks-only -- --help
111
+
[sdist]
112
+
113
+
[wheel]
114
+
[2025-11-11T17:31:06-0500][p2a][WARNING]: Only dicts with str, int, float, bool, or enum values are supported - field `cmake_env_args` got value type typing.Dict[str, str]
`hatch-cpp` will respect standard environment variables for compiler control, e.g. `CC`, `CXX`, `LD`, `CMAKE_GENERATOR`, `OSX_DEPLOYMENT_TARGET`, etc.
111
183
112
184
> [!NOTE]
113
185
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
0 commit comments