[Python-modules-team] Bug#645256: Bug#645256: python-pisa: missing dependency on python-pkg-resources

Enrico Zini enrico at enricozini.org
Thu Jan 2 11:06:17 UTC 2014


On Tue, Feb 21, 2012 at 05:11:19PM +0100, W. Martin Borgert wrote:
> Quoting "Jakub Wilk" <jwilk at debian.org>:
> >If the script is the main reason users install this package (I
> >have no idea whether this is the case or not)
> trac-wikiprint does "import ho.pisa as pisa".

Other users besides trac-wikiprint may want to use xhtml2pdf, though :)

I propose another way out: replace the xhtml2pdf script with this:

  #!/usr/bin/python
  from sx.pisa3 import command
  command()

it works and it does not depend on python-pkg-resources. It skips
dependency checking, but as long as the launcher script is packaged
together with the library, the dependency checks are not needed.

This way the command works without the need of adding any dependency to
python-pisa.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico at enricozini.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20140102/08a690e7/attachment.sig>


More information about the Python-modules-team mailing list