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
{{ message }}
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
run = { cmd="python run.py $ARGUMENT", env={ ARGUMENT="value" }}# Set an environment variable
410
410
format = { cmd="black $INIT_CWD" } # runs black where you run pixi run format
411
-
clean-env = { cmd = "python isolated.py", clean-env = true} # Only on Unix!
411
+
clean-env = { cmd="python isolated.py", clean-env=true } # Only on Unix!
412
+
test = { cmd="pytest", default-environment="test" } # Set a default pixi environment
412
413
```
413
414
414
415
You can modify this table using [`pixi task`](cli/pixi/task.md).
@@ -461,6 +462,7 @@ The options that can be defined are:
461
462
-`no-binary`: don't use pre-build wheels.
462
463
-`index-strategy`: allows for specifying the index strategy to use.
463
464
-`prerelease-mode`: controls whether pre-release versions are allowed during dependency resolution.
465
+
-`skip-wheel-filename-check`: allows installing wheels with version mismatches between filename and metadata.
464
466
465
467
These options are explained in the sections below. Most of these options are taken directly or with slight modifications from the [uv settings](https://docs.astral.sh/uv/reference/settings/). If any are missing that you need feel free to create an issue [requesting](https://github.com/prefix-dev/pixi/issues) them.
466
468
@@ -621,6 +623,39 @@ Example:
621
623
prerelease-mode = "allow"# Allow all pre-release versions
622
624
```
623
625
626
+
### Skip Wheel Filename Check
627
+
628
+
By default, `uv` validates that wheel filenames match the package metadata (name and version) inside the wheel. This validation ensures that wheels are correctly named and helps prevent installation of malformed packages.
629
+
630
+
However, in some cases you may need to install wheels where the filename version doesn't match the metadata version. The `skip-wheel-filename-check` option allows you to disable this validation.
631
+
632
+
!!! warning "One skip-wheel-filename-check per environment"
633
+
Only one `skip-wheel-filename-check` can be defined per environment or solve-group, otherwise, an error will be shown.
634
+
635
+
#### Possible values:
636
+
637
+
-**`false`** (default): Perform wheel filename validation. Installation will fail if filename and metadata don't match.
638
+
-**`true`**: Skip wheel filename validation. Allow installing wheels with mismatched filename and metadata versions.
639
+
640
+
#### Precedence
641
+
642
+
The `UV_SKIP_WHEEL_FILENAME_CHECK` environment variable takes precedence over the `skip-wheel-filename-check` pypi-option. This allows for temporary overrides without modifying the manifest.
643
+
644
+
645
+
Example:
646
+
```toml
647
+
[pypi-options]
648
+
# Allow installing malformed wheels
649
+
skip-wheel-filename-check = true
650
+
```
651
+
652
+
Or set per feature:
653
+
```toml
654
+
[feature.special.pypi-options]
655
+
# Only for this feature's environment
656
+
skip-wheel-filename-check = true
657
+
```
658
+
624
659
## The `dependencies` table(s)
625
660
??? info "Details regarding the dependencies"
626
661
For more detail regarding the dependency types, make sure to check the [Run, Host, Build](../build/dependency_types.md) dependency documentation.
test = { cmd = "pytest", default-environment = "test" }
34
37
```
35
38
36
39
## Depends on
@@ -157,6 +160,18 @@ This will add the following line to [manifest file](../reference/pixi_manifest.m
157
160
bar = { cmd = "python bar.py", cwd = "scripts" }
158
161
```
159
162
163
+
## Default environment
164
+
165
+
You can set the default Pixi [environment](../tutorials/multi_environment.md#adding-an-environment) used by a task using the `default-environment` field:
0 commit comments