rasbt/watermark

Include information about how Python was installed

itamarst opened this issue · 2 comments

Python can be installed in an number of ways. Limiting focus just to Linux, for example:

  • Official system package
  • On Ubuntu, deadsnakes PPA
  • pyenv
  • Conda (official default and conda-forge)
  • python Docker image

Knowing how Python was installed can be useful at times for tools that have more intrusive integration with the interpreter, e.g. profilers like https://pythonspeed.com/fil/ or https://sciagraph.com.

If I submitted a PR to add this, would you be willing to accept it? I'd probably do Linux only, as a first pass, with a limited number of Linux distributions, because I don't know as much about macOS/Windows install mechanisms.

rasbt commented

Thanks for your suggestion and offering to contribute! Like you said, I think this could be useful indeed.

We could probably add it via the

--python_installation

flag. Only supporting Linux atm sounds reasonable to me. I can probably look into macOS if I find some time ^^.

Thank you, will add to my todo list.