Hanspeter,
    The libkate1-shlibs-0.4.1-5 update doesn't actually use
wxpython300 in KateDJ. You need to add...

Index: libkate1-shlibs.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/libkate1-shlibs.info,v
retrieving revision 1.5
diff -r1.5 libkate1-shlibs.info
3c3
< Revision: 5
---
> Revision: 6
22c22
< perl -pi -e 's|/usr/bin/env python|%p/bin/python2.7|g' ./tools/KateDJ/KateDJ
---
> perl -pi -e 's|/usr/bin/env python|/usr/bin/env 
> PYTHONPATH=%p/lib/wxpython300-py27 python2.7|g' ./tools/KateDJ/KateDJ

The nature of the co-existing wxpython packages is that using
wxpython300 requires setting the PYTHONPATH path in target programs...

% python2.7
...
>>> import sys
>>> print(sys.path)
['', '/sw/lib/python27.zip', '/sw/lib/python2.7',
'/sw/lib/python2.7/plat-darwin', '/sw/lib/python2.7/plat-mac',
'/sw/lib/python2.7/plat-mac/lib-scriptpackages',
'/sw/lib/python2.7/lib-tk', '/sw/lib/python2.7/lib-old',
'/sw/lib/python2.7/lib-dynload', '/sw/lib/python2.7/site-packages',
'/sw/lib/python2.7/site-packages/ccpnmr/ccpnmr2.4/python',
'/sw/lib/python2.7/site-packages/gtk-2.0',
'/sw/lib/python2.7/site-packages/wx-2.8-gtk2-unicode',
'/sw/lib/python2.7/site-packages/wx-3.0-osx_cocoa']
>>>

and if both wxgtk2.8-py27 and wxpython300-py27 are installed, the
former is found first. To avoid having to Conflicts on wxgtk2.8-py27,
the trivial fix is to use env and pass PYTHONPATH to prefix the path
to %p/lib/wxpython300-py27. You will notice with the above changes,
KateDJ lauches from the aqua interface to python2.7 and reports on
deprecated calls in wxpython being used...

% /sw/bin/KateDJ
/sw/bin/KateDJ:39: wxPyDeprecationWarning: Using deprecated class PySimpleApp.
  app=wx.PySimpleApp()
/sw/bin/KateDJ:40: wxPyDeprecationWarning: Call to deprecated item.
  wx.InitAllImageHandlers()

Note that debian has the same issue but has additional changes in
their python packages to allow the update-alternatives method to set
which wxpython to be used by default. My understanding though is that
this is a system-wide change so is really of limited utility here.
          Jack

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to