alert-psychiatrist-1410201/28/2023, 7:02 AM
bored-energy-2525201/28/2023, 7:25 AM
high-yak-8589901/28/2023, 7:37 AM
bitter-ability-3219001/28/2023, 12:24 PM
high-yak-8589901/28/2023, 5:54 PM
bitter-ability-3219001/28/2023, 6:07 PM
thousands-france-2786301/28/2023, 7:03 PM
alert-psychiatrist-1410201/28/2023, 9:27 PM
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!
Failed 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 ...
enough-analyst-5443401/29/2023, 2:49 AM
). Good luck guessing the paths of compiler, linker, various headers and libraries on a Linux system.
pip install some-sdist.tar.gz
alert-psychiatrist-1410201/29/2023, 7:56 AM
enough-analyst-5443401/30/2023, 1:16 PM
(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-3219001/30/2023, 3:44 PM
(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-8690301/30/2023, 7:44 PM
For 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.