Replies: 3 comments
-
Thanks for opening this issue @NichtJens. That is indeed an interesting use case. What you could do already is to create "feature" packages which depend on the packages you want to include. Each package could be defined by a [workspace]
channels = [
"https://prefix.dev/conda-forge",
]
platforms = ["osx-arm64", "osx-64", "linux-64", "win-64"]
preview = ["pixi-build"]
[dependencies]
plotting_packages = { path = "/path/to/plotting_packages" } |
Beta Was this translation helpful? Give feedback.
-
Thanks @Hofer-Julian for the idea. That would probably work as well ... This might actually be preferable to my suggestion since the If you don't mind, could you give an example of what |
Beta Was this translation helpful? Give feedback.
-
Something like this should work: # recipe.yaml
package:
name: plotting_packages
version: 0.1.0
build:
number: 0
requirements:
run:
- matplotlib
- numpy
- jupyterlab Just put the |
Beta Was this translation helpful? Give feedback.
-
Problem description
Use case:
We provide a jupyterhub installation to our users in a HPC environment. They are allowed to create their own data-analysis envs to be used within jupyter.
In order to use some resources, the users need to match versions of a few packages to the versions of our installation. For instance:
We would like to simplify this by providing globally shared features that can be used by every user in their respective toml files preferably without copy and paste.
Could pixi support such a use case?
Solution ideas:
Sadly, TOML does not support linking other toml files into the current file.
The obvious idea would be to allow an entry in
~/.pixi/config.toml
that can point to one/several (?) files that contain feature definitions. The user needs to configure this once and then it works for all their envs.If feature names appear in the global definition as well as a local
pixi.toml
, the local version wins allowing users to "overwrite" a global feature if they need to.Similarly, if a list of several global feature files is allowed, the earlier/later (?) entry wins allowing a user to chain, e.g., ours and their global features into a merged list.
Beta Was this translation helpful? Give feedback.
All reactions