How to pass environment variables into pixi run
?
#3495
-
For those of us who have migrated to using recipe format ...
conda_install_tool: pixi
... in $ pixi task list
Tasks that can run on this machine:
-----------------------------------
build, build-linux_64_, build-locally, inspect-all, inspect-linux_64_, lint, rerender, smithy
- build Build yarr-feedstock directly (without setup scripts), no particular variant specified
- build-linux_64_ Build yarr-feedstock with variant linux_64_ directly (without setup scripts)
- build-locally Build packages locally using the same setup scripts used in conda-forge's CI
- inspect-all List contents of all packages found in rattler-build build directory.
- inspect-linux_64_ List contents of yarr-feedstock packages built for variant linux_64_
- lint Lint the feedstock recipe
- rerender Rerender the feedstock.
- smithy Run conda-smithy. Pass necessary arguments. For
with something like However,
doesn't set diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml
index 3ad513d..5424301 100644
--- a/recipe/recipe.yaml
+++ b/recipe/recipe.yaml
@@ -22,6 +22,7 @@ build:
...
+ - echo "CPU_COUNT ${CPU_COUNT}"
... but at runtime
In $ pixi --version
pixi 0.44.0 or later how can shell environment variables be passed into |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The answer is to do exactly as I was doing
The reason
doesn't work is because
works as expected and great though. 👍 |
Beta Was this translation helpful? Give feedback.
The answer is to do exactly as I was doing
The reason
doesn't work is because
build-locally
runs.scripts/run_docker_build.sh
which doesn't take its values directly from the environment.works as expected and great though. 👍