alert-psychiatrist-14102
01/28/2023, 7:02 AMbored-energy-25252
01/28/2023, 7:25 AMhigh-yak-85899
01/28/2023, 7:37 AMbitter-ability-32190
01/28/2023, 12:24 PMhigh-yak-85899
01/28/2023, 5:54 PMbitter-ability-32190
01/28/2023, 6:07 PMthousands-france-27863
01/28/2023, 7:03 PMalert-psychiatrist-14102
01/28/2023, 9:27 PMFailed to find compatible interpreter on path /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.
Examined the following interpreters:
1.) /usr/local/bin/python3.9 CPython==3.9.16
2.) /usr/bin/python3.9 CPython==3.9.2
No interpreter compatible with the requested constraints was found:
A distribution for numpy could not be resolved for /usr/local/bin/python3.9.
Found 1 distribution for numpy that do not apply:
1.) The wheel tags for numpy 1.24.1 are cp39-cp39-macosx_10_9_x86_64 which do not match the supported tags of /usr/local/bin/python3.9:
cp39-cp39-manylinux_2_31_x86_64
... 661 more ...
A distribution for numpy could not be resolved for /usr/bin/python3.9.
Found 1 distribution for numpy that do not apply:
1.) The wheel tags for numpy 1.24.1 are cp39-cp39-macosx_10_9_x86_64 which do not match the supported tags of /usr/bin/python3.9:
cp39-cp39-manylinux_2_31_x86_64
... 661 more ...
i.e., the numpy 3rdparth dependency was packaged for mac and copied into the docker, which in turn can't run it.
What's the correct way to build python dockers with pants?
Thx!enough-analyst-54434
01/29/2023, 2:49 AMpip install some-sdist.tar.gz
). Good luck guessing the paths of compiler, linker, various headers and libraries on a Linux system.alert-psychiatrist-14102
01/29/2023, 7:56 AMenough-analyst-54434
01/30/2023, 1:16 PM--par
(spelling to be determined) as a build option to finally obtain system independence for any PEX file. This has been a goal since inception in 2010, basically to have Google's internal PAR.bitter-ability-32190
01/30/2023, 3:44 PMpyoxy
(https://pyoxidizer.readthedocs.io/en/stable/pyoxy.html) for running Python without system installations. It has fewer features than standalone, but is all single-file which makes it REALLY easy to use.faint-businessperson-86903
01/30/2023, 7:44 PMFor this scenario you can use another monorepo tool, like nx or bazel (fairly complex), to manage that side.At my company we worked around this by adopting two monorepos, one for our webapps written in typescript using turborepo and one for everything else via pants. It sucks splitting the work in two (we all choose monorepo for a reason!), but weāve found turborepo is very specialized and effective for what it does, and pants not supporting js/ts made it a no brainer.