]> git.pld-linux.org Git - packages/python-PyQt4.git/blob - python-PyQt4-64bit.patch
- up to 4.11.2
[packages/python-PyQt4.git] / python-PyQt4-64bit.patch
1 --- PyQt-x11-gpl-4.9.2/configure.py.orig        2012-06-23 22:27:26.000000000 +0200
2 +++ PyQt-x11-gpl-4.9.2/configure.py     2012-06-23 22:31:20.495786424 +0200
3 @@ -965,6 +965,7 @@
4              else:
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()
9  
10                  config_args = ducfg.get("CONFIG_ARGS", "")
11 @@ -979,18 +980,7 @@
12                      dynamic_pylib = "--enable-shared" in config_args
13  
14                  if dynamic_pylib:
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 'MULTIARCH' in ducfg and glob.glob('%s/lib/%s/libpython%d.%d*' % (ducfg['exec_prefix'], ducfg['MULTIARCH'], py_major, py_minor)):
18 -                        lib_dir_flag = quote('-L%s/lib/%s' % (ducfg['exec_prefix'], ducfg['MULTIARCH']))
19 -                    elif glob.glob("%s/libpython%d.%d*" % (ducfg["LIBDIR"], py_major, py_minor)):
20 -                        lib_dir_flag = quote("-L%s" % ducfg["LIBDIR"])
21 -                    else:
22 -                        sipconfig.inform("Qt Designer plugin disabled because Python library couldn't be found")
23 -                        lib_dir_flag = ''
24 -                        opts.designer_plugin = False
25 -
26 -                    link = "%s -lpython%d.%d%s" % (lib_dir_flag, py_major, py_minor, abi)
27 +                    link = "-L%s -lpython%d.%d%s" % (get_python_lib(plat_specific=1, standard_lib=1), py_major, py_minor, abi)
28                  else:
29                      sipconfig.inform("Qt Designer plugin disabled because Python library is static")
30                      opts.designer_plugin = False
This page took 0.082568 seconds and 3 git commands to generate.