Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/user/Embedding-Build-Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,23 @@ The Python packages and their versions are specified as if used with `pip`:
...
</configuration>
```
- The **requirementsFile** element declares a path to a pip-compatible `requirements.txt` file.
The plugin forwards this file directly to pip (`pip install -r`), allowing full use of pip’s native dependency format.

```xml
<configuration>
<requirementsFile>requirements.txt</requirementsFile>
...
</configuration>
```

> **_NOTE:_**
> Exactly one of `packages` or `requirementsFile` must be configured.
> When `requirementsFile` is used:
> - the GraalPy lock file is not created or used
> - the `lock-packages` goal is disabled
> - dependency locking must be handled by pip (e.g., `pip freeze`)


- The **resourceDirectory** element can specify the relative [Java resource path](#java-resource-path).
Remember to use `VirtualFileSystem$Builder#resourceDirectory` when configuring the `VirtualFileSystem` in Java.
Expand Down