pcdshub / Bug-Reports-and-Requests

Issue Tracking for PCDS Software
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Dev Request: "Which versions am I running?" script #41

Open ZLLentz opened 4 years ago

ZLLentz commented 4 years ago

Feature Request

I want a configurable method I can run to show me the following information about all the modules I pass into it:

  1. version number
  2. path, if not in my conda install

E.g. if I am running xcs3, and I call get_versions(), and I have configured it to show me the pcdsdevices and pcdsdaq version numbers, the output may look something like: pcdsdaq: v1.0.0, installed pcdsdevices: v1.2.0+12asdf, /reg/g/pcds/pyps/apps/hutch-python/xcs/dev/devpath/pcdsdevices

Existing Alternatives

Lots of legwork

Context

This would help us figure out which versions we are running during debug and have helpful output to paste into a bug report.

ZLLentz commented 4 years ago

Rediscovered https://github.com/pcdshub/hutch-python/blob/master/hutch_python/bug.py today, might be a good starting point/already be enough, not investigating fully right now