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

pixi-to-conda-lock program that convert quickly generated pixi.lock to conda-lock.yml #780

Open
basnijholt opened this issue Feb 26, 2025 · 4 comments

Comments

@basnijholt
Copy link
Contributor

basnijholt commented Feb 26, 2025

Hi all!

I have been experimenting with Pixi lately and have been amazed about its speed, especially how it is able to generate a lockfile in seconds–instead of minutes in the case of conda-lock.

As a proof of principle, I therefore created the pixi-to-conda-lock package.

It currently assumes the latest pixi.lock format (I just haven't tested with older versions).

Basically uvx pixi-to-conda-lock pixi.lock will generate a conda-lock.yml for you.

I have some other code in unidep here that can create a pixi.toml file from a environment.yaml file, however, it is still a PR.

I wonder what you folks think!

@maresb
Copy link
Contributor

maresb commented Feb 26, 2025

I have not tried it out yet (I don't have any particular use case) but I love the idea, and I love the modular nature.

I could see conda-lock depending on this in order to add support for pixi as a backend.

@maresb
Copy link
Contributor

maresb commented Feb 26, 2025

I think I've even done most of the complementary work with the conda-lock render-lock-spec --kind=pixi.toml feature on the main branch.

@basnijholt
Copy link
Contributor Author

@maresb, cool, I will checkout the --kind=pixi.toml code!

BTW, I did a full rewrite of pixi-to-conda-lock using py-rattler, it is 30% of the previous code and muuuuuuuch faster and more reliable now.

@maresb
Copy link
Contributor

maresb commented Feb 27, 2025

Please keep me up-to-date with all your work around this subject, and let's also think about how we can integrate it directly here.

I've also been wanting to update the README here to mention pixi and related tools, so please feel free to propose a blurb.

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

No branches or pull requests

2 participants