The best way is probably a bootstrap script ie. ps1 or sh which supplies the platform-specific parameters, and can pip install any script dependencies. So, 3-file solution.
Additonally, this can be generalised to a CI platform as python can subprocess-run anything there's not a native lib for.
Lastly, you could do autodoc via the script for a complete solution.