doc/languages-frameworks/python: add extra information for pythonRelaxDepsHook

This commit is contained in:
natsukium 2024-06-02 00:50:11 +09:00
parent 1b4462bb0c
commit 8f9e861543
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1361,6 +1361,8 @@ instead of a dev dependency).
Keep in mind that while the examples above are done with `requirements.txt`,
`pythonRelaxDepsHook` works by modifying the resulting wheel file, so it should
work with any of the [existing hooks](#setup-hooks).
It indicates that `pythonRelaxDepsHook` has no effect on build time dependencies, such as in `build-system`.
If a package requires incompatible build time dependencies, they should be removed in `postPatch` with `substituteInPlace` or something similar.
#### Using unittestCheckHook {#using-unittestcheckhook}