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: docs/source/getting-started.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,23 @@ For details read the chapter [on topics and it's domains](topics-and-domains).
63
63
Do not add custom settings to settings section.
64
64
They will be lost on next `mxmake init` respective `mxmake update` run.
65
65
66
+
### Python Package Installer
67
+
68
+
By default, mxmake uses `pip` as the package installer. You can switch to [UV](https://docs.astral.sh/uv/) by setting `PYTHON_PACKAGE_INSTALLER=uv` in the settings section.
69
+
70
+
When using UV, mxmake automatically detects if UV is installed globally or installs it locally in the virtual environment.
71
+
72
+
```{note}
73
+
When using UV, you should explicitly set `UV_PYTHON` to specify which Python version UV should use. While `UV_PYTHON` currently defaults to `PRIMARY_PYTHON` for backward compatibility, this default may change in future versions. Set `UV_PYTHON` explicitly to avoid surprises.
Copy file name to clipboardExpand all lines: docs/source/preseeds.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,10 @@ topics:
15
15
core:
16
16
# include domain mxenv
17
17
mxenv:
18
-
# set PYTHON_MIN_VERSIONand PYTHON_PACKAGE_INSTALLER
19
-
PYTHON_MIN_VERSION: 3.10
18
+
# set PYTHON_MIN_VERSION, PYTHON_PACKAGE_INSTALLER and UV_PYTHON
19
+
PYTHON_MIN_VERSION: 3.14
20
20
PYTHON_PACKAGE_INSTALLER: uv
21
+
UV_PYTHON: "3.14"
21
22
qa:
22
23
# include domains from qa topic but do not override default settings
23
24
ruff:
@@ -36,6 +37,26 @@ Now initialize the project with the preseeds:
36
37
$ mxmake init -p preseeds.yaml
37
38
```
38
39
40
+
## UV Package Installer
41
+
42
+
When `PYTHON_PACKAGE_INSTALLER` is set to `uv`, mxmake automatically detects whether UV is installed globally on your system.
43
+
44
+
```{important}
45
+
When using UV, you should explicitly set `UV_PYTHON` to specify which Python version UV should use. While `UV_PYTHON` currently defaults to `PRIMARY_PYTHON` for backward compatibility, relying on this default is not recommended and may change in future versions.
46
+
```
47
+
48
+
The `UV_PYTHON` setting accepts version specs like `3.13`, `3.14`, or `cpython@3.14`:
49
+
50
+
```yaml
51
+
topics:
52
+
core:
53
+
mxenv:
54
+
PYTHON_MIN_VERSION: "3.14"
55
+
PRIMARY_PYTHON: python3
56
+
PYTHON_PACKAGE_INSTALLER: uv
57
+
UV_PYTHON: "3.14"# Explicitly specify Python version for UV
58
+
```
59
+
39
60
## Examples
40
61
41
62
### Create a simple Python project
@@ -56,9 +77,9 @@ Enter the `hello-world-` directory and create a file `preseed.yaml`:
0 commit comments