not being able to build wxPython ( cocoa ) 2.9 due to wx-config issues

Hi, I've just build wx 2.9 with osx_cocoa successfully ( yeah! ) and
am looking fwd. to build wxPython.
However, wx-config is in the way of progress.
Although the libs of 2.9 were successfully build & installed, wx-
config does not recognise it:

jelle-laptop:~ localadmin$ wx-config --list
Default config is mac-unicode-debug-2.8
Default config will be used for output

Just to prove I'm not loosing it:

jelle-laptop:~ localadmin$ ls /usr/local/lib/libwx_osx*
/usr/local/lib/libwx_osx_cocoau_adv-2.9.1.0.0.dylib
/usr/local/lib/libwx_osx_cocoau_adv-2.9.1.dylib
/usr/local/lib/libwx_osx_cocoau_adv-2.9.dylib

The issue has been reported before, but likely not fixed?
http://trac.wxwidgets.org/ticket/11317

What can I do to circumvent this issue?
It seems a minor issue, but does take quite some time to resolve if
one -like me- is not that familiar with wx.

Thanks in advance!

-jelle

python setup.py build WXPORT=osx_cocoa
jelle-laptop:wxPython_2.9_svn localadmin$ WARNING: WXWIN not set in
environment. Assuming '..'
Found wx-config: /usr/bin/wx-config
    Using flags: --toolkit=osx_cocoa --unicode=yes --version=2.9

  Warning: No config found to match: /usr/bin/wx-config --
toolkit=osx_cocoa --unicode=yes --version=2.9 --cxxflags
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/bin/wx-config --
toolkit=osx_cocoa --unicode=yes --version=2.9 --libs
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/bin/wx-config --
toolkit=osx_cocoa --unicode=yes --version=2.9 --basename
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/bin/wx-config --
toolkit=osx_cocoa --unicode=yes --version=2.9 --release
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/bin/wx-config --
toolkit=osx_cocoa --unicode=yes --version=2.9 --prefix
           in /usr/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

Preparing CORE...
Traceback (most recent call last):
  File "setup.py", line 162, in <module>
    copy_file(opj(WXDIR, 'docs', file), opj('licence',file), update=1,
verbose=0)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/distutils/file_util.py", line 119, in copy_file
    "can't copy '%s': doesn't exist or not a regular file" % src
distutils.errors.DistutilsFileError: can't copy '../docs/
preamble.txt': doesn't exist or not a regular file

This is the problem, it's trying to use the wrong wx-config. You either need to adjust your PATH such that /usr/local/bin is found first, or you can tell setup.py which one to use by adding WX_CONFIG=/usr/local/bin/wx-config on the command line.

···

On 12/11/09 4:39 AM, jelle wrote:

However, wx-config is in the way of progress.
Although the libs of 2.9 were successfully build& installed, wx-
config does not recognise it:

Just to prove I'm not loosing it:

jelle-laptop:~ localadmin$ ls /usr/local/lib/libwx_osx*
/usr/local/lib/libwx_osx_cocoau_adv-2.9.1.0.0.dylib
/usr/local/lib/libwx_osx_cocoau_adv-2.9.1.dylib
/usr/local/lib/libwx_osx_cocoau_adv-2.9.dylib

Found wx-config: /usr/bin/wx-config

--
Robin Dunn
Software Craftsman