Skip to content

Comment on Boring Python: dependency management (2022)

Comments

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.