Comment on Boring Python: dependency management (2022)Comments−ildjarn2yHas 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.−jvolkman2yProbably 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-exampleBut 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.−ildjarn2yrules_pycross looks very interesting and is sorely needed in the Python ecosystem. I will follow its development!
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!