OS-X 10.9.1 (system based python 2.7.5) / error: package directory 'wx/lib/agw' does not exist

I am trying to build wxPython in source tree mode (not system installed) and am pulling the head/master versions of wxPython & wxWidgets sources from repo (most recent commits from both at the time of this commit).

Building wxWidgets (3.1.0+) is fine and then I proceed to use “build-wxpython.py” with the “–no_wxbuild --install” but I am getting the following error, and not being a wxWidgets/wxPython guy I am lost.

copying wx/lib/wxpTag.py → build/cocoa/lib.macosx-10.9-intel-2.7/wx/lib

error: package directory ‘wx/lib/agw’ does not exist

ERROR: failed building wxPython.

Any ideas on where to look, bug? system setup issue? dependency issue?

TIA,

Robert

Robert Nees wrote:

I am trying to build wxPython in source tree mode (not system installed)
and am pulling the head/master versions of wxPython & wxWidgets sources
from repo (most recent commits from both at the time of this commit).

You should be using the code from the wxWidgets 3.0 branch, wxPython hasn't been updated to use the 3.1 code yet.

SVN: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH
Git: WX_3_0_BRANCH branch from GitHub - wxWidgets/wxWidgets: Cross-Platform C++ GUI Library

Building wxWidgets (3.1.0+) is fine and then I proceed to use
"build-wxpython.py" with the "--no_wxbuild --install" but I am getting
the following error, and not being a wxWidgets/wxPython guy I am lost.

This isn't the cause of your troubles but you will probably be better off if you let build-wxpython.py also build wxWidgets for you. That will ensure that the necessary configure flags will be used.

    ...
    copying wx/lib/wxpTag.py -> build/cocoa/lib.macosx-10.9-intel-2.7/wx/lib
    error: package directory 'wx/lib/agw' does not exist
    ERROR: failed building wxPython.

The SVN wxPython tree uses svn:externals to map some source code from other locations into the wxPython source tree. If you used git to fetch your wxPython source tree then you'll need to help it get those other source files too, as there isn't any easy way to correctly handle svn:externals when using git as a front-end to subversion. So there are some helper scripts in wxPython/bin that will take care of things for you. Run bin/subrepos-make to do the initial checkout of each external, and bin/subrepos-update to pull in new changes later on.

···

--
Robin Dunn
Software Craftsman