some-farmer-97614
07/31/2020, 1:57 PMhundreds-father-404
07/31/2020, 3:25 PM__init__.py
files if you haven’t gone all in on using the new feature of dependency inference.some-farmer-97614
07/31/2020, 8:16 PMhundreds-father-404
07/31/2020, 8:18 PMsome-farmer-97614
07/31/2020, 8:18 PMhundreds-father-404
07/31/2020, 8:19 PMsome-farmer-97614
07/31/2020, 8:19 PMhundreds-father-404
07/31/2020, 8:20 PMsome-farmer-97614
07/31/2020, 8:20 PMhundreds-father-404
07/31/2020, 8:21 PMHow do I get my IDE to recognize the pants imports in plugins and find the code for them?See the last sentence of https://www.pantsbuild.org/v2.0/docs/plugins-overview#tip-set-up-your-plugin-with-the-python-backend about how to set up a venv. The example plugin has a script you can copy under
build-support/python/setup_venv.sh
some-farmer-97614
07/31/2020, 10:21 PMMind sharing about what your plugin is that you’re working on?I'm just trying to invoke
cargo
to compile rust binaries for me. I don't need it to be deeply integrated, just kind of take the rust source directory, invoke the command and output a binary, that I can depend on for another target.witty-crayon-22786
08/03/2020, 9:39 PMhundreds-father-404
08/03/2020, 9:47 PMBinaryPaths
to discover where cargo is installed on their machine in a generic way: https://www.pantsbuild.org/v2.0/docs/rules-api-installing-tools
Even simpler is to assume a fixed absolute path, like /usr/bin/cargo
or wherever. While iterating, I recommend doing that. Then generalize when relevant.witty-crayon-22786
08/03/2020, 9:54 PMProcess(append_only_caches=..)