Skip to content

How to create a multi-platform build pipeline for Python? #16780

Answered by jsirois
maxromanovsky asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Is my understanding correct about wheels being required to build pex files for multiple platforms?

Yes. More accurately, pre-built wheels are required for foreign platforms. If you're on Mac and want to build a PEX that runs on Linux, you'll need the Linux-specific wheels pre-built and available on PyPI or available via a local index.

  1. Could you suggest a workflow for using Pants locally (on different OS/arch) and on CI (Linux x64) that would allow building Docker images for Linux x64?

The basics are just that you need to pre-build wheels for all platforms you target and make those wheels available in a custom repo. You then point Pants at that custom repo.

Say the platforms you ta…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by maxromanovsky
Comment options

stuhood
Sep 9, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@jsirois
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants