Archived
This forum has been archived. Please start a new discussion on GitHub.
Platform detection on the Ice PyPI distribution
Currently on https://pypi.python.org/pypi/zeroc-ice/3.6.0 the setup.py file on line 49 uses:
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
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
0
Comments
-
Hi Caleb,
Thank you for this bug report!
Best regards,
Bernard0 -
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,
Dan0 -
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.0 -
Hi Caleb,
Thanks for the workaround. It works perfectly!!!
Regards,
Dan0