Open twobombs opened 1 month ago
Sorry I've let this languish, but there's a complicating factor: PyQrack itself is not a command-line program. It's a library, rather. However, the following command should tell you the PyQrack version:
pip3 freeze | grep pyqrack
Further, the Qrack version number is given by the shared library *.so
file version number:
ls `python3 -m site --user-site`/pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.*.*.*
This command probably won't work correctly if you're using venv
, but the solution in that case is to check the package cache of the virtual environment, the same way.
PyQrack
is a python wrapper forQrack
Qrack
can be compiled forPyQrack
with a lot of features, and out of the box this has been done with a 'best of all worlds' settings in mind but are not always obvious nor visible to the user.Also, some scenarios require different options, and then we need to compile the
Qrack
binaries and link them (again) to thePyQrack
wrapperWe then find ourselves in the stuation what version and what settings the PyQrack at runtime we are looking at as well.
For that reason a feature request is proposed:
--version
option for (py)qrack to displayPyQrack
andQrack
version, architecture andcmake
settings at runtimeI suggest we do not make it too verbose, but still usefull for parsing by scripts to make decisions based on the output