Rip – Rust crate to resolve and install Python packages
prefix.dev
prefix.dev
Please don't pollute my home directory. Follow the XDG base directory specification [1].
[1]: https://specifications.freedesktop.org/basedir-spec/basedir-...
We'll have some more conversations around this in the upcoming weeks I hope.
But we have a strong and true commitment to open source. A non-open-source package manager would definitely not work for our community!
Perhaps packages that are borderline irrelevant should not squat on prime name real estate. Plus cant rip ship as rip-py and still install as rip on the bet that nobody is actually going to be trying to use these tools simultaneously?
Who cares if every build script in the world breaks, progress waits for no one.
Conda-forge also produces packages for much more (nodejs, Qt, HDF5, C/C++ compilers, LLVM ...).
So we have access to a pretty big repository and a large community already :)
Once we are feature complete enough we will work on some more benchmarking.
This is also the approach that we want to take with rip. As you can imagine, the performance will be quite bad (but nothing we can do about that). Ideally, almost all packages should ship wheels.
Bindings like pycairo are a good example.
On windows a WHL can be provided.
On Linux it can't - Cairo (which pycairo binds to) is shipped by the distro, and distros are free to enable or disable different features.
Since the C bindings are linked to the cairo shared library, and that includes all the backends you can't build that and know if would work in a distro.
There are two use cases for pycairo - in one you might not care what the system provides and if the pycairo who provided its own Cairo shared object, that would be fine.
In the second use case you want to use the system provides Cairo, e.g. to work with Gtk.
It's impossible to resolve this workout changing how Cairo itself works and it's API.
The result is no pycairo whl on Linux, and users who have to install all the dependencies (which once go to pango you pull in Gtk, X, freetype etc).
Cairo isn't the only example but it's one I know.
A lot of these are libraries that bind system libraries and predate virtualenv / venv - when they were created compiling things was fine.
It would be ideal but it's not always possible. I maintain a GSSAPI/KRB5 library that wraps the C libs but due to PyPI wheel policies I cannot upload a wheel without embedding those C libs which then opens up a whole bunch of problems around deps and lib conflicts :(
And then a new python version is released and virtually no packages with native modules have wheels for that new python version. (too few use abi3)
Also, good luck finding wheels for e.g. s390x linux.
> Example setup: To build manylinux, musllinux, macOS, and Windows wheels on GitHub Actions, you could use this .github/workflows/wheels.yml
But do you or others build them with SLSA 3? https://slsa.dev/get-started#slsa-3
Also now you are moving the goalposts. Python wheels exist but not all Python packages are distributed as wheels.
If I am going through the effort to build wheels myself, then I don't need a resolver since I can just make sure to pick all the versions I need. Then I don't need rip to install anything.
In fact, for a long time conda & mamba have created "hard-links" to a central package cache for the mentioned space savings.
> Rattler: Rust crates for fast handling of conda packages