github prefix-dev/pixi v0.33.0

16 hours ago

✨ Highlights

This is the first release with the new pixi global implementation. It's a full reimplementation of pixi global where it now uses a manifest file just like pixi projects. This way you can declare your environments and save them to a VCS.

It also brings features like, adding dependencies to a global environment, and exposing multiple binaries from the same environment that are not part of the main installed packages.

Test it out with:

# Normal feature
pixi global install ipython

# New features
pixi global install \
    --environment science \           # Defined the environment name
    --expose scipython=ipython \      # Expose binaries under custom names
    ipython scipy                     # Define multiple dependencies for one environment

This should result in a manifest in $HOME/.pixi/manifests/pixi-global.toml:

version = 1

[envs.ipython]
channels = ["conda-forge"]
dependencies = { ipython = "*" }
exposed = { ipython = "ipython", ipython3 = "ipython3" }

[envs.science]
channels = ["conda-forge"]
dependencies = { ipython = "*", scipy = "*" }
exposed = { scipython = "ipython" }

📖 Documentation

Checkout the updated documentation on this new feature:

Breaking changes

This release breaks some CLI commands for pixi global

Before v0.33 In v0.33.0 Comment
pixi global upgrade package pixi global update environment_name updates the environment to the highest versions possible within the spec from the manifest
pixi global upgrade-all pixi global update Updates all environments to the highest possible version within the spec from the manifest
pixi global remove pixi global uninstall remove has become the opposite of add and uninstall of install, thus remove only removes packages from an environment not the environment itself

Don't miss a new pixi release

NewReleases is sending notifications on new releases.