File wxPython-platlib.patch of Package python-wxWidgets

--- wxPython/config.py
+++ wxPython/config.py
@@ -43,6 +43,8 @@
 import distutils.command.install_headers
 import distutils.command.clean
 
+import distutils.sysconfig
+
 #----------------------------------------------------------------------
 # flags and values that affect this script
 #----------------------------------------------------------------------
@@ -685,7 +687,7 @@
     if FLAVOUR:
         ep += "-" + FLAVOUR
 
-    return ep
+    return os.path.join(distutils.sysconfig.get_python_lib(True), ep)
 
 #----------------------------------------------------------------------
 # These functions and class are copied from distutils in Python 2.5
@@ -695,7 +697,6 @@
 # the -arch and -isysroot args provided by Python.
 
 import distutils.unixccompiler
-import distutils.sysconfig
 from distutils.errors import DistutilsExecError, CompileError
 
 def _darwin_compiler_fixup(compiler_so, cc_args):
openSUSE Build Service is sponsored by