Hacker News new | ask | show | jobs
by endgame 76 days ago
Why is a C++ project being distributed on PyPi at all?
4 comments

Probably for the same reason other binaries are distributed by npm: lack of cross platform general package managers and registries
Also for cases where a python project needs to depend on it.
Kinda weird to have the language toolchain wrap the build system, should be the other way around.
Yes, but I mean... this is Python we're talking about. There are several build systems / coordinators written in Python (scons, colcon, etc) not to mention Python packages that themselves contain compiled bits written in other languages.

I know nowadays we have formalized, cross-platform ways to build bindings (scikit-build-core, etc), but that is a relatively recent development; for a long ass time it was pretty common place to have a setup.py full of shell-outs to native toolchains and build tools. It's not hard to imagine a person in that headspace feeling like being able to pull that stuff directly from pypi would be an upgrade over trying to detect it missing and instruct the user to install it before trying again.

Or lack of a tool like Goreleaser in the language ecosystem that handles that
You may be interested in this discussion: https://discuss.python.org/t/use-of-pypi-as-a-generic-storag...
You need to bundle a supply chain attack with it. /s
Because the development world either hasn't heard of nix or has collectively decided to not use nix.