http://bugs.async.com.br/show_bug.cgi?id=4079

           Summary: install script does not properly handle the '--home'
                    installation option
           Product: Kiwi
           Version: SVN trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: (unset)
         Component: Framework
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
   Estimated Hours: 0.0


Try installing kiwi using the command:
python setup.py install --home=/home/your_username_here

After doing that, importing the kiwi module will fail with an error such as:

EnvironmentError: path /home/somers/lib/python/None/share/kiwi/pixmaps must be
a directory

The cause for this is that __installed__.py is incorrectly generated.  It
defines prefix as:

prefix = r"None"

And the cause for that is that kiwi/dist.py does not consider the possibility
that a user might use the '--home' option.  It correctly handles uses of the
'--prefix' option, though.  It contains the following code, repeated in a few
places:

        install = distribution.get_command_obj('install')
        name = distribution.get_name()

        prefix = install.prefix

An appropriate solution, I think, would be to check install.home in the event
that install.prefix is None.  I haven't yet tried this, though, because the
code appears in many places and I'm worried that I wouldn't catch all
instances.

A workaround is to install with the command 'python setup.py
--prefix=/home/your_username_here/'.  A related problem is that the install
script does not handle '~' in the prefix correctly.  So 'python setup.py
--prefix=~/' does not work.

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
Kiwi mailing list
[email protected]
http://www.async.com.br/mailman/listinfo/kiwi

Reply via email to