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 wheels on PyPI? #2748

Open
paugier opened this issue Dec 19, 2024 · 2 comments
Open

Pixi wheels on PyPI? #2748

paugier opened this issue Dec 19, 2024 · 2 comments

Comments

@paugier
Copy link

paugier commented Dec 19, 2024

Problem description

I realize that this seems a bit strange to ask for Pixi wheels on PyPI but wait. Note that UV is available on PyPI (https://pypi.org/project/uv).

For computers at work (on WIndows), we cannot install Pixi with the command given in the doc because of a program taking care about security. An administrator told me that something can be done but that it is complicated. So I don't know when and if I will be able to use the standard Pixi installation method. We have exactly the same issue for UV!

However, it is very easy to install UV since we can install python and pipx and UV can be installed simply with pipx install uv.

I guess it should be very simple for Pixi to also upload wheels on PyPI providing the Pixi command.

Writing this, I realize that I could also install Pixi with Miniforge, since I know that I can install conda/mamba. It would just be a bit simpler with pipx because python can be installed with the Microsoft Store. Moreover, one reason to get Pixi is potentially to avoid the Miniforge installation.

@ruben-arts
Copy link
Contributor

Okay as a Friday afternoon project I tried this out.

I've tried using maturin which would make it really easy to compile our setup into a wheel. Then we could use the build artifacts of that to get the normal binary release.

I've tried hatch and that could also allow us to use a simple script to move the binary around.

Both result in a correctly installable version. The remaining questions I didn't get to answer is:

  1. Are we going to uv route, use maturin and make the wheel build our main binary build and get the normal binaries from that run.
  2. Extend our current setup with a simple hatch build hook to package a file into a wheel after it was build by cargo dist.

Leaving this here for when I have time for it again 👍

@paugier
Copy link
Author

paugier commented Dec 20, 2024

Nice Friday afternoon project 🙂 !

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