1 --- PyQt-x11-gpl-4.8.4/configure.py~ 2011-07-01 15:32:10.000000000 +0200
2 +++ PyQt-x11-gpl-4.8.4/configure.py 2011-07-01 15:33:57.466398732 +0200
5 # Use distutils to get the additional configuration.
6 from distutils.sysconfig import get_config_vars
7 + from distutils.sysconfig import get_python_lib
8 ducfg = get_config_vars()
10 if sys.platform == "darwin":
11 # We need to work out how to specify the right framework
13 link = "-framework Python"
14 - elif "--enable-shared" in ducfg.get("CONFIG_ARGS", ""):
15 - if glob.glob("%s/lib/libpython%d.%d*" % (ducfg["exec_prefix"], py_major, py_minor)):
16 - lib_dir_flag = quote("-L%s/lib" % ducfg["exec_prefix"])
17 - elif glob.glob("%s/libpython%d.%d*" % (ducfg["LIBDIR"], py_major, py_minor)):
18 - lib_dir_flag = quote("-L%s" % ducfg["LIBDIR"])
20 - sipconfig.inform("Qt Designer plugin disabled because Python library couldn't be found")
21 - opts.designer_plugin = False
23 - link = "%s -lpython%d.%d%s" % (lib_dir_flag, py_major, py_minor, abi)
24 + elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") ):
25 + link = "-L%s -lpython%d.%d" % (get_python_lib(plat_specific=1, standard_lib=1), py_major, py_minor)
27 sipconfig.inform("Qt Designer plugin disabled because Python library is static")
28 opts.designer_plugin = False