wooden-thailand-8386
09/02/2020, 11:02 PMpython_app
is causing chaos and there isnt bundle
as a goal anymore. š Did it become something else or we wonāt have support for that on v2.0?hundreds-father-404
09/02/2020, 11:03 PMpython_app
isnāt supported because we plan to redesign it in a better way. https://www.pantsbuild.org/v2.0/docs/how-to-upgrade-pants-2-0#python_app-and-the-bundle-goal-are-removed-130-vs-20
For now, the closest alternative would be running binary
.
Is this a blocker for you?happy-kitchen-89482
09/02/2020, 11:29 PMpython_app
and python_binary
, and between the bundle
and binary
goals, was unclear, and possibly unnecessary. You can now embed arbitrary files directly in the .pex
file, using a files()
target.python_app
and bundle
? Or were you using it because it was idiomatic in v1?hundreds-father-404
09/02/2020, 11:30 PMYou can now embed arbitrary files directly in theĀ .pexĀ file, using aĀ files()Ā target.That would be the main difference. If the files are bundled directly in the
.pex
, vs. kept ālooseā outside of the .pex
wooden-thailand-8386
09/03/2020, 12:56 PMpython_app
and bundle
. Iām putting my code inside the .pex file but the ML models are kept ālooseā as Eric, mentioned. So when I run it I normally use flags to point to those ālooseā folders/files..pex
file but my entrypoint
for the .pex
is a ML cli
tool that canāt really find the config files and models if itās inside the .pex
. It tries to find it where youāre running it from. Thatās basically the main reason why we choose pants
. The python_app
and bundle
were super straightforward for our use case..pex
and then all those ālooseā files and put them together instead of that single .tar.gz
for my Dockerfile.hundreds-father-404
09/03/2020, 4:14 PMI guess all Iād have to do is change my CI get the binaryĀ .pexĀ and then all those ālooseā files and put them together instead of that singleĀ .tar.gzĀ for my Dockerfile.Okay. Does this work okay? If not, we can re-prioritize adding back
python_app
given the importance of it to your use case.wooden-thailand-8386
09/03/2020, 5:58 PMhundreds-father-404
09/04/2020, 4:43 AMrel_mapper
stuff?