]> git.pld-linux.org Git - packages/python-PyQt4.git/blob - python-PyQt4-64bit.patch
- rel 2; 64bit patch fixed
[packages/python-PyQt4.git] / python-PyQt4-64bit.patch
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
3 @@ -946,22 +946,15 @@
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                  if sys.platform == "darwin":
11                      # We need to work out how to specify the right framework
12                      # version.
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"])
19 -                    else:
20 -                        sipconfig.inform("Qt Designer plugin disabled because Python library couldn't be found")
21 -                        opts.designer_plugin = False
22 -
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)
26                  else:
27                      sipconfig.inform("Qt Designer plugin disabled because Python library is static")
28                      opts.designer_plugin = False
This page took 0.036648 seconds and 3 git commands to generate.