1 --- PyQt-x11-gpl-4.4.4/configure.py.orig 2008-11-18 03:44:10.692417175 +0100
2 +++ PyQt-x11-gpl-4.4.4/configure.py 2008-11-18 03:47:26.735730174 +0100
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", "") and
15 - 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 - link = "%s -lpython%d.%d" % (lib_dir_flag, py_major, py_minor)
18 + elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") ):
19 + link = "-L%s -lpython%d.%d" % (get_python_lib(plat_specific=1, standard_lib=1), py_major, py_minor)
21 sipconfig.inform("Qt Designer plugin disabled because Python library is static")
22 opts.designer_plugin = False