I’m interested in trying out PGO when compiling Python and looked over the documentation here:
I see that with the default it runs the tests but that you can set a value yourself for PROFILE _,TASK, such that your code will be run for PGO purposes.
However, what I’m stuck on is how do you (can you?) handle this if the code you want to run requires packages to be installed. Is there a recommended way to install them against the newly built CPython executable?
Sorry if this is obvious and maybe I’m overlooking something or have the wrong mental model for what’s going on, but I couldn’t see how to set this up up front so that the packages are handled right before it goes into the PGO stage.
I’m primarily interested in doing this for Linux and Windows and am reasonably comfortable with both of them. Let me know if there are any other details I should share.