logoalt Hacker News

Wrap Go binaries in Python wheels

18 pointsby ankitg12last Tuesday at 3:23 PM12 commentsview on HN

Comments

Philip-J-Fryyesterday at 10:54 PM

Why wouldn't I just `go install` from the git repo? Why is it worth encouraging the use of python tooling for generic application distribution when things like homebrew or chocolatey already exist?

show 1 reply
mbreeseyesterday at 10:29 PM

See here [1] for more information on the rationale behind this.

[1] https://simonwillison.net/2026/Feb/4/distributing-go-binarie...

geophphyesterday at 11:23 PM

I’m curious if I could use this to write my webserver in Go, then call back to Python for the data sciencey stuff over stdin(?), but all in one nice tidy package? I mean right now I use fastapi and write it all in Python but I happen to enjoy writing Go. Does it matter either way? No I have like 4 users, but it seems not too crazy either?

the__alchemistyesterday at 10:37 PM

This is still surprising! There are similar tools for rust, and presumably it works for arbitrary binaries. Can be a convenient installation approach if you expect your user base to use python. E.g. for distributing tools written in Go, Rust, C, etc that aid Python development. To the user, it's a standard `pip install x`, but x is not a python script.

mistic92yesterday at 11:11 PM

Why should I use python when I can just use Go? Like why

show 1 reply
sunshine-oyesterday at 10:29 PM

Read too fast, I was really hoping for a way to get a python app in a binary like in Go.

show 1 reply