Results 1 to 2 of 2

Thread: Python bindings version number

  1. #1
    blair is offline Registered User
    Name: Blair Zajac
    Organization: Sony Pictures Imageworks
    Project: VnP
    Join Date
    Mar 2007
    Posts
    34

    Python bindings version number

    It would be nice if the Python bindings could report the version of the
    bindings they are, somthing like

    Ice.version

    would give 3.2.1.

    I don't see anything currently:

    Code:
    >>> [x for x in dir(Ice) if x.find('ersion') != -1]
    ['StringConversionException', 'VersionMismatchException', '_t_StringConversionException', '_t_VersionMismatchException']
    The reason this would be nice because we're going to be supporting
    multiple versions of Ice installed on the same box at the same
    time and it would be nice if Python scripts could dynamically
    determine which version they are using.

    For example, we have Ice 3.1.1 installed into /usr and recently
    built 3.2.1 into /usr/local/ice/3.2-gcc34, both using RPMs. The
    Python tools that use them pick up 3.1.1 automatically because
    it's first in the sys.path, but I want the script to only support
    3.2.1, so I put the /usr/local/ice/3.2-gcc34/.... into sys.path.
    But if the 3.2.1 RPMs are not installed, which is possible, we're
    talking about hundreds of systems, it'll still fall back to 3.1.1.

    So having the Ice version number available would allow the
    script to check and bail out early, instead of us wondering
    why something isn't working and using lsof to see which shared
    libraries the process has picked up.

    This would be useful for the PHP and Ruby bindings also.

    Regards,
    Blair

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the suggestion. We'll look into adding this for the next release of Ice.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. D Language Bindings
    By jsternberg in forum Projects
    Replies: 2
    Last Post: 06-12-2011, 06:16 PM
  2. Segfault (using Python bindings)
    By Kristaps Rāts in forum Bug Reports
    Replies: 3
    Last Post: 05-16-2007, 06:13 AM
  3. Replies: 1
    Last Post: 04-05-2005, 03:18 AM
  4. General praise, CLR and C# bindings
    By Ctaesis in forum Comments
    Replies: 2
    Last Post: 01-05-2004, 12:26 PM
  5. Python bindings for Ice - pyce 0.1
    By vukicevic in forum Comments
    Replies: 1
    Last Post: 07-03-2003, 08:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •