feat: run conda-script files via pixi run --experimental --script - #6909
Open
Hofer-Julian wants to merge 1 commit into
Open
feat: run conda-script files via pixi run --experimental --script#6909Hofer-Julian wants to merge 1 commit into
pixi run --experimental --script#6909Hofer-Julian wants to merge 1 commit into
Conversation
pixi run --experimental --script
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
August 27, 2026 15:20
7ef2f56 to
e434b69
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
2 times, most recently
from
August 31, 2026 11:20
38212f8 to
77ac750
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
August 31, 2026 11:49
77ac750 to
210df4e
Compare
Hofer-Julian
marked this pull request as ready for review
August 31, 2026 12:43
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
September 3, 2026 09:51
210df4e to
910a3f1
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
September 3, 2026 12:24
910a3f1 to
5daecfe
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
2 times, most recently
from
September 3, 2026 12:35
dd17be8 to
b841299
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
2 times, most recently
from
September 3, 2026 13:22
3ddfb85 to
e3ffe5a
Compare
Contributor
|
What is your plan for making this not experimental? |
Contributor
|
Do you think it would make sense to have default entrypoints? |
Contributor
Author
As soon as the CEP is accepted or at least the syntax is unlikely to change, this will not be experimental anymore |
Contributor
Author
I think the sweet spot is to have defaults in |
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
September 4, 2026 12:16
e3ffe5a to
7f80765
Compare
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
September 4, 2026 13:48
7f80765 to
904e66b
Compare
Wires the conda-script proposal (#3751) into the CLI. A `--script` file with a `/// conda-script` block routes to a new path behind the `--experimental` flag, which has no effect for PEP 723 scripts so a shebang line can pass it unconditionally. The `experimental.conda-script` configuration option opts in without the flag and warns on every run instead. The block synthesizes a workspace through the existing script machinery: `[dependencies]` fills the default feature while `[tool.pixi.dependencies]` and `[tool.pixi.pypi-dependencies]` become a second feature of the default environment, so both spec sets reach the solver as a union. The environment resolves for the host, an adjacent lock file wins when present, and `pixi lock --script FILE` writes `FILE.pixi.lock` for conda-script files too. The entrypoint runs through the mini-shell with `${SCRIPT}` and `${CACHE}` defined, cwd left at the invocation directory and CLI arguments appended to the last command. Signals pixi receives are forwarded to the entrypoint, and its processes are terminated when pixi stops, the same as for tasks.
Hofer-Julian
force-pushed
the
conda-script-run
branch
from
September 4, 2026 14:04
904e66b to
9abd217
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pixi run --script FILEruns conda-script files (#3751) end to end.--experimentalgates the new path and has no effect for PEP 723 scripts, so#!/usr/bin/env -S pixi run --experimental --scriptworks for both block kindspixi config set experimental.conda-script true --globalopts in without the flag and warns on every run instead, so the error points at that command[dependencies]fills the default feature and[tool.pixi.*]becomes a second feature of the default environmentpixi lock --script FILEwritesFILE.pixi.lockfor conda-script files too${SCRIPT}and${CACHE}defined and the working directory left at the invocation directory