[PATCH] bug 174806

Thiago Macieira thiago at kde.org
Sat Apr 11 17:19:21 CEST 2009


Michael Witten wrote:
>2009/4/11 Thiago Macieira <thiago at kde.org>:
>> Why can't the user set PYTHONPATH?
>
>Unfortunately, this must be done if you're using python < 2.6 and
>installing anywhere but the system-wide site-packages. However, in
>general, this is not a solution, and it is always the wrong mentality.
>Always.

I see.

Well, if we detect Python 2.6, then we should install to the KDE prefix by 
default. The problem then is, of course, the surprise factor: if someone 
upgrades, suddenly KDE starts installing to the wrong path.

I recommend, instead, that we default to the KDE prefix and, if Python 2.5 
or earlier is detected, we print a big warning at the end of the cmake 
run, saying that you will not be able to run and that you should set the 
PYTHON_SITE_PACKAGES_DIR variable instead. Even make it a fatal error.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090411/9de30923/attachment.sig 


More information about the Kde-buildsystem mailing list