ZeroC

Archived

This forum has been archived. Please start a new discussion on GitHub.

Platform detection on the Ice PyPI distribution

Darkman802
Darkman802
Currently on https://pypi.python.org/pypi/zeroc-ice/3.6.0 the setup.py file on line 49 uses:
elif platform == 'linux2':

This does not work for Python 3 as sys.platform only returns 'linux' and not 'linux2' or 'linux3' as described here: http://bugs.python.org/issue12326

Comments

  • bernard
    bernard Jupiter, FL
    Hi Caleb,

    Thank you for this bug report!

    Best regards,
    Bernard
  • danleepw
    danleepw
    Hi,

    When will the fix be deployed to https://pypi.python.org as I can't install the python3 ice by pip in Centos7 now because of the bug? or is there any way to do the installation?

    Regards,
    Dan
  • Darkman802
    Darkman802
    Hi Dan,

    For a temporary workaround you can download the .tgz from PyPI, unpack it, replace the setup.py file with the current one from the github repo https://github.com/zeroc-ice/ice-packaging/blob/master/ice/pypi/setup.py, and then just tell pip to install from the unpacked directory.

    There's probably a better way, but it works.
  • danleepw
    danleepw
    Hi Caleb,

    Thanks for the workaround. It works perfectly!!!

    Regards,
    Dan