On Mon, Nov 04 2019, Tomi Ollila wrote: > > as for checking pytest existence, the following works somewhat: > > ~/test-venv/bin/python3 -m pytest --version > > It prints the version, then exists. Could not figure out how to request > specific version in quick look (10 min search/trial/error session), > parsing version output is so... :/ Hah, dumped ~/test-venv/. so retry... $ python3 -m venv ~/test-venv $ ~/test-venv/bin/pip3 install pytest $ ~/test-venv/bin/python3 >>> import pytest >>> dir(pytest) >>> pytest.__version__ prints out '5.2.2'. argh, string again (in addition to resorting to __...__ names/attributes of whatever these are called in python ;). anyway, even parsing this version string in python than doing it in shell script would be better...(*) anything better ? Tomi (*) got exhausted when looking through this: https://stackoverflow.com/questions/11887762/how-do-i-compare-version-numbers-in-python _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch