Precompiling for PythonCall.jl juliacall

I have a Python application that uses PythonCall.jl’s juliacall to interface with Julia. I would like to use precompilation to improve the startup time of the application. PrecompileTools.jl lets you specify a Julia workload to trigger precompilation, but my workload is in Python, calling Julia.

How can I log all the compilations that occur as a result of the corresponding juliacall code, and force those to be precompiled?

Also asked here: Facilitate precompilation for `juliacall` calls · JuliaPy/PythonCall.jl · Discussion #473 · GitHub