Skip to content

How to get a create an environment that doesn't install with the default environment? #1149

Discussion options

You must be logged in to vote

I think the answer as of pixi v0.18.0 is "you don't" and you instead construct multiple environments that work with a very minimal "default" environment like the following:

[project]
name = "columnar-analysis-benchmarks"
version = "0.1.0"
description = "Add a short description here"
authors = ["Matthew Feickert <matthew.feickert@cern.ch>"]
channels = ["conda-forge"]
platforms = ["linux-64"]

[tasks]

[dependencies]
python = "3.11.*"

[feature.ab-stable.dependencies]
coffea = "==2023.12.0"

[feature.ab-dev.dependencies]
coffea = "==2024.4.0"

[environments]
ab-stable = ["ab-stable"]
ab-dev = ["ab-dev"]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ruben-arts
Comment options

Answer selected by ruben-arts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants