Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: versioning and cmake options at build time visible in pyqrack #30

Open
twobombs opened this issue Sep 1, 2024 · 1 comment

Comments

@twobombs
Copy link

twobombs commented Sep 1, 2024

PyQrack is a python wrapper for Qrack

Qrack can be compiled for PyQrack 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 the PyQrack wrapper

We 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:

  • a python variant or a wrapper to a --version option for (py)qrack to display PyQrack and Qrack version, architecture and cmake settings at runtime

I suggest we do not make it too verbose, but still usefull for parsing by scripts to make decisions based on the output

@WrathfulSpatula
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants