[zeromq-dev] czmq runtime version detection
Pieter Hintjens
ph at imatix.com
Tue Dec 17 10:45:33 CET 2013
Hi Chris,
There's no catch-all module, that tends to become abused. The cleanest
option is to add a zversion class. However to kick off I'd add it to
zsys, which says,
"The zsys class provides a portable wrapper for miscellaneous
functions that we want to wrap but which don't fit into any of the
existing classes."
zsys_version() would be the right name then.
Quite separately we might add a czmq class that wraps the whole API,
as we did for Zyre. Not now, though.
-Pieter
On Tue, Dec 17, 2013 at 5:21 AM, Chris Laws <clawsicus at gmail.com> wrote:
> Pyczmq may only be usable with recent versions of libzmq and czmq. Further
> investigation is necessary to confirm this but a version check at install
> time would be useful.
>
> If I am using Python and the FFI module I can obtain the zmq version, within
> the setup.py installer by calling the zmq_version function. Is there any way
> to obtain the equivalent CZMQ version at runtime? I understand that there
> are compile time #defines but I am after runtime version detection.
>
> If there is not a method to achieve this I guess I'll submit a pull request
> to add a czmq_version function somewhere. Any suggestions for which C file
> would this should go in? There does not seem to be a catch-all module,
> everything has its place.
>
> Regards,
> Chris
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list