<@U065GEE8ULR>, <@U065SUC1PT2>: Hello and welcome ...
# welcome
w
@numerous-apartment-3919, @abundant-tent-27407: Hello and welcome to the Pantsbuild community! Please don’t hesitate to reach out if you have questions. If you’re comfortable doing so, would you mind sharing how you heard about Pants, and the context you might be interested in using it in? Thank you!
a
Thanks @witty-crayon-22786, and I certainly will come with questions 🤣 . I heard about Pants first working with @able-television-91310. I have just started in a new organisation, mostly producing software in Python. The team have tried to setup a monorepo however it is more of a repo of many python projects, each with its own tooling. Hence I am looking for a better way to manage and build our software, and am assessing alternatives. So far after one evening getting my feet wet with Pants I have enjoyed it so far. I finished up last night a little stuck on working with containerisation of say a simple Flask app. The issue is around producing a Linux x86 image with the correct python dependencies from a Mac arm64 machine. Still getting my head around possible solutions, and how parts go together, but any guidance is welcome!
b
The best supported option for cross builds like that is using “complete platforms” that summarise the target environment. (These require that all packages are available as wheels for that target platform.) In https://github.com/pantsbuild/pants/discussions/18756, there’s an example of what works for our docker builds (and AWS lambda ones), doing exactly the same cross-build as you.
If that doesn’t work (e.g wheels aren’t available and it’s not easy to prebuild them to some custom registry), one can also build the PEXes in a docker environment that matches the target one: https://www.pantsbuild.org/docs/environments
🙏 1
n
Whoops, I missed this thread when I joined. I've been vaguely aware of
pants
for the past ~10 yrs or so, but I'm finally giving a real try on a new monorepo. I also happen to be one of the bitbucket cloud engineers so Im also evaluating how it plays with bitbucket pipelines in general
🎉 2
w
Ah, awesome. Welcome!