@@ -43,6 +43,9 @@ buildPythonPackage rec {
4343 # remove wxPython's darwin hack that interference with python-2.7-distutils-C++.patch
4444 substituteInPlace config.py \
4545 --replace "distutils.unixccompiler.UnixCCompiler = MyUnixCCompiler" ""
46+ # set the WXPREFIX to $out instead of the storepath of wxwidgets
47+ substituteInPlace config.py \
48+ --replace "WXPREFIX = getWxConfigValue('--prefix')" "WXPREFIX = '$out'"
4649 # this check is supposed to only return false on older systems running non-framework python
4750 substituteInPlace src/osx_cocoa/_core_wrap.cpp \
4851 --replace "return wxPyTestDisplayAvailable();" "return true;"
@@ -62,7 +65,7 @@ buildPythonPackage rec {
6265 buildPhase = "";
6366
6467 installPhase = ''
65− ${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
68+ ${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=0 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out
6669 wrapPythonPrograms
6770 '';
6871