[PyKDE] Problem installing latest sip snapshot

Detlev Offenbach detlev at die-offenbachs.de
Sun Jun 4 14:11:18 BST 2006


Hi,

in order to install the latest sip snapshot, I had to give it the give it the 
python site and library directories explicitly. I am using a 64 bit system, 
where python is located in /usr/lib64/python. The problem is the hardcoded 
string in sip's configure.py. In the method "set_platform_directories" you 
should use sys.lib instead of the hardcoded value of "lib".
---------------
        vers = "%d.%d" % ((py_version >> 16) & 0xff, (py_version >> 8) & 0xff)

        plat_py_site_dir = sys.prefix + "/" + sys.lib + "/python" + vers
        if py_version >= 0x020000:
            plat_py_site_dir = plat_py_site_dir + "/site-packages"

        plat_py_inc_dir = sys.prefix + "/include/python" + vers
        plat_py_conf_inc_dir = sys.exec_prefix + "/include/python" + vers
        plat_py_lib_dir = sys.prefix + "/" + sys.lib + "/python" + vers + 
"/config"
        plat_bin_dir = sys.exec_prefix + "/bin"
        plat_sip_dir = sys.prefix + "/share/sip"
---------------

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list