Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For anyone not familiar: You can bundle arbitrary software as Python wheels. Can be convenient in cases like this!


What "cases" are those? Tell me one useful and neat case. Why is it useful and neat, you think?


For one example, a number of years back, I built a python package, env, and version manager. It was built entirely Rust and distributed as a binary. Since I know users would likely have pip installed, it provided an easy way for them to install, regardless of OS.

You could go further like in this case, and use wheels + PyPi for something unrelated to Python.


I believe it is used to cross platform link Rust/maturin wheels, which seems nice because it's one fewer unusual install script to integrate into your project, if zig isn't packaged for Debian yet.


It's useful as a distro-agnostic distribution method. CMake is also installable like this despite having nothing to do with Python.

Or I should say it was useful as a distribution method, because most people had Python already available. Since most distros now don't allow you to install stuff outside a venv you need uv to install things (via `uv tool install`) and we're not yet at the point where most people already have uv installed.


Bundling a browser frontend together with your Python application.


uv and ruff use that Approach. They are Python related tools, but written 100% in Rust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: