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

Has anyone figured out to how to “cross-compile” Python?

By this I mean creating an app bundle that contains the dependencies but for another platform than the one we are bundling on.



Probably not what you're looking for, but I put together a demo of actually cross-compiling a wheel the other day: https://github.com/jvolkman/bazel-pycross-zstandard-example

But if you just mean that you want to gather the dependencies for a platform other than your build host: this should be possible with the help of Poetry and PDM since they both perform cross-platform resolution.


rules_pycross looks very interesting and is sorely needed in the Python ecosystem. I will follow its development!




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

Search: