https://pantsbuild.org/ logo
h

high-yak-85899

02/24/2023, 6:03 PM
Maybe a better question, is there a way that I can run a python unit test that has access to the java backend when executed?
I'm using the Python api for Apache Flink which requires Java. I'd like to avoid having steps to set up java on everyone's machine. Curious if there's a way to hook in the java backend so that the jars packaged along with the flink system work happily.
šŸ‘€ 1
c

curved-television-6568

02/24/2023, 6:15 PM
(those šŸ‘€ mean Iā€™m interested in the answer to this too.. not directly looking into it.. šŸ˜¬ )
h

high-yak-85899

02/24/2023, 7:33 PM
I wonder if it's as "simple" as modifying the python test execution to add the jdk tooling and then set
JAVA_HOME
to where it's installed
I actually have a few uses for this kind of capability (having a tool available in the environment a test is run) now. Might be cool to brainstorm on how to generalize it.
This seems like the kind of thing the new environments stuff could enable
3 Views