]>
Commit | Line | Data |
---|---|---|
fe1cf40d MT |
1 | diff -up PyQt-x11-gpl-4.4.4/configure.py.64bit PyQt-x11-gpl-4.4.4/configure.py |
2 | --- PyQt-x11-gpl-4.4.4/configure.py.64bit 2008-11-08 05:55:49.000000000 -0600 | |
3 | +++ PyQt-x11-gpl-4.4.4/configure.py 2008-11-10 14:01:14.000000000 -0600 | |
4 | @@ -756,16 +756,15 @@ include(%s) | |
5 | else: | |
6 | # Use distutils to get the additional configuration. | |
7 | from distutils.sysconfig import get_config_vars | |
8 | + from distutils.sysconfig import get_python_lib | |
9 | ducfg = get_config_vars() | |
10 | ||
11 | if sys.platform == "darwin": | |
12 | # We need to work out how to specify the right framework | |
13 | # version. | |
14 | link = "-framework Python" | |
15 | - elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") and | |
16 | - glob.glob("%s/lib/libpython%d.%d*" % (ducfg["exec_prefix"], py_major, py_minor))): | |
17 | - lib_dir_flag = quote("-L%s/lib" % ducfg["exec_prefix"]) | |
18 | - link = "%s -lpython%d.%d" % (lib_dir_flag, py_major, py_minor) | |
19 | + elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") ): | |
20 | + link = "-L%s -lpython%d.%d" % (get_python_lib(plat_specific=1, standard_lib=1), py_major, py_minor) | |
21 | else: | |
22 | sipconfig.inform("Qt Designer plugin disabled because Python library is static") | |
23 | opts.designer_plugin = False |