Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start work on next gen global envs #1655

Closed
wants to merge 12 commits into from
Closed

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Jul 23, 2024

The ideas are as follows:

  • we create a new "manifest" file that contains all the state for all the global environments
  • we add some new commands like pixi global sync
  • users can add multiple packages to global environemnts (aka inject)
  • users can selectively expose binaries
  • we map all the binaries in the file (the manifest file should be edited mostly from CLI)

Current WIP manifest file (in YAML, because we didn't yet figure out how to make it look nice in TOML):

envs:
  python:
    dependencies:
      python:
        spec: "3.11.*"
        expose_binaries:
          python: python
          python3: python3
          python3.8: python3.8
      pip:

@ruben-arts
Copy link
Contributor

Would you need to expose binaries per dependency? Other wise I could imagine the following toml format:

[environments.ENVNAME]
dependencies = { python = "3.8.1", pip = "1.2.3" }
expose = { python = "python", python3 = python3, "python3.8" = "python3.8", pip = "pip", pip3 = "pip3"}

equal to:

[environments.ENVNAME.dependencies]
python = "3.8.1"
pip = "1.2.3" 
[environments.ENVNAME.expose]
python = "python"
python3 = python3
"python3.8" = "python3.8"
pip = "pip"
pip3 = "pip3"

I would agree the yaml looks more natural but this mix of config files feel kinda strange to me.

@ruben-arts ruben-arts marked this pull request as draft August 5, 2024 07:25
@ruben-arts ruben-arts added this to the New `pixi global` milestone Aug 6, 2024
@ruben-arts
Copy link
Contributor

Closing as this was a prototype for the coming implementation follow milestone: https://github.com/prefix-dev/pixi/milestone/9

@ruben-arts ruben-arts closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants