synapticarbors / pixi2ces

Tool to convert pixi lock files to conda compatible explicit specs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pixi2ces

Experimental tool to convert pixi lock files to a Conda explicit spec (ces). This tool borrows inspiration and code from pixi-pack. Its purpose is to allow users to manage environments and locking using pixi, but then render a lock file that can be used directly by conda or mamba. The explicit spec only contains download urls so no additional environment solve is required by conda/mamba.

Installation

cargo install --locked --git https://github.com/synapticarbors/pixi2ces

Usage

After using pixi to create a pixi.lock file, you can then render a platform and env specific conda-compatible explicit spec by running:

$ pixi2ces pixi.toml -p <PLATFORM> -e <ENV>

This will create a file conda-<PLATFORM>-<ENV>.lock (e.g conda-linux-64-default.lock), which can then be used to create a conda environment:

$ conda create -n my-env --file conda-linux-64-default.lock

About

Tool to convert pixi lock files to conda compatible explicit specs


Languages

Language:Rust 100.0%