https://pantsbuild.org/ logo
b

bitter-ability-32190

04/04/2022, 3:39 PM
Just wanted to share a win. Previously when we needed scripts from packages to be invoked as regular dev workflow we had to add it to our monumental list of requirements and run it through the user's virtual environment šŸ¤® Now, we have: ā€¢ An isolated resolve for 3rdparty tools to be used directly as scripts (like `pip-tools`'s
pip-compile
) ā€¢ An easy way to make sure the packaging is consistent and portable (
pex_binary
) ā—¦ With macros to make this easy for devs to declare ā€¢ A consistent and portable way to invoke the tool (
./pants run ...
)
šŸ™Œ 4
My only wish would be to not have to specify the function in
pex_binary
entry_point
, but instead declare an entry point name exposed by the tool (and then the machinery uses the definition of that)
h

hundreds-father-404

04/04/2022, 4:42 PM
b

bitter-ability-32190

04/04/2022, 4:45 PM
coke
h

hundreds-father-404

04/04/2022, 4:54 PM
also tip to use cli,alias so you can do ./pants poetry fo example
b

bitter-ability-32190

04/04/2022, 5:05 PM
We have a lot of scripts. Until we can shuffle the aliases under a customly named goal I'll just use
run
šŸ‘ 1
4 Views