Jppy: linking with libpython

martin f krafft madduck@madduck.net
Mon May 5 12:32:04 BST 2008


Dear list,

(there may have been a few posts on this to the list recently. Due
to the moderation, I lost track. Thus, this is a new post with all
the information).

I am facing a problem with the jppy packages in Debian, and
I solicit your help, since I am failing to see where to make the
changes to fix it.

  http://bugs.debian.org/445379

The issue is a libpython dependency, which we don't want in Debian,
since our Python policy wants to make Python packages usable with
all supported Python versions. Thus, hardcoding the dependency is
considered to break stuff.

This issue may well be related to

  http://mail.zanu.org.uk/pipermail/jppy/2008-April/000157.html

which is yet unanswered.

I've committed a couple of changes to SVN, which remove the
libpython dependency. These were by other people and I can't claim
to have understood them:

  http://jppy.zanu.org.uk/trac/changeset/309

However, they seem to work, apparently since when the module is
loaded, all symbols from libpython2.x are available to functions
inside the module, so we do not need to explicitly link.

However, now the the jpilot plugin fails to load:

  Open failed on plugin [/usr/lib/jpilot/plugins/libjppy.so]
  error [/usr/lib/jpilot/plugins/libjppy.so: undefined symbol: PyExc_ImportError]

This seems to be because the jpilot plugin itself (in
jppy-jpilot-plugins) embeds the interpreter and thus needs the
dependency, whereas the python module (in python-jppy) is loaded by
the interpreter itself (even when embedded in jpilot).

I am pretty much at a loss how to fix this for lack of scons
knowledge. If any of you could fill me in how to fix this, I'd
greatly appreciate it.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
"i wish there was a knob on the tv to turn up the intelligence.
 there's a knob called 'brightness', but it doesn't seem to work."
                                                          -- gallagher
 
spamtraps: madduck.bogus@madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://mail.zanu.org.uk/pipermail/jppy/attachments/20080505/21dd3f0d/attachment.pgp>


More information about the Jppy mailing list