[ovirt-users] ovirt shell on mac OS ?

Juan Hernández jhernand at redhat.com
Thu Aug 20 14:01:00 UTC 2015


On 08/20/2015 03:52 PM, Fabrice Bacchella wrote:
> 
>> Le 20 août 2015 à 15:50, Juan Hernández <jhernand at redhat.com> a écrit :
>>
>> On 08/20/2015 01:00 PM, Fabrice Bacchella wrote:
>>> I'm trying to install ovirt-shell on my mac, as explained in http://www.ovirt.org/CLI#pypi , but if fails :
>>
> 
>> I have created the following bug to track this issue:
>>
>>  https://bugzilla.redhat.com/1255409
>>
>> Note that we (well, at least I) don't have any Mac OS environment to
>> test this, so it is unlikely that we can add support for it. Would you
>> be interested in working on this yourself?
> 
> Yes, that's possible. I just need a little help about this Terminal thing. Is that a normal dependency ? Perhaps a simple modification to setup.py can help.
> 

This is related to the cli/platform/__init__.py, there we check what is
the platform using the Python "sys.platform" variable. Currently we only
check for "linux2" and "win32". I think that in Mac OS the value of
"sys.platform" is "darwin". So, if you can, try to modify that file so
that it has this content:

import sys

if sys.platform in ['linux2', 'darwin']:
    from cli.platform.posix.terminal import PosixTerminal as Terminal
    from cli.platform.posix.util import *

elif sys.platform in ('win32',):
    pass

Then check if it works correctly.

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.



More information about the Users mailing list