Re: RFR: cairosvg -- SVG converter based on Cairo

2012-06-08 Thread Thomas Kluyver
On 7 June 2012 17:09, Michael Fladischer mich...@fladi.at wrote:
 SVG converter based on Cairo

This description seems a bit ambiguous - does it convert from or to
SVG? What's the format on the other end of the conversion? But perhaps
this is obvious to anyone who'd want to install it. Clicking through
to the website, I see it's from SVG to pdf/ps/png.

Best wishes,
Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caovn4qhz4xacjdsiu6czsams91faggd5e69rt8x18bx90ez...@mail.gmail.com



Re: RFR: cairosvg -- SVG converter based on Cairo

2012-06-08 Thread Jakub Wilk

* Michael Fladischer mich...@fladi.at, 2012-06-07, 18:09:
The CLI script /usr/bin/cairosvg works with both py2 and py3 versions 
of the cairosvg package, so I moved it to a separate -common package. 
Any comments on how to handle this in a saner/better way or if this is 
already the correct way are especially appreciated.


No, it's not really correct. /usr/bin/cairosvg has currently 
#!/usr/bin/python2.7 (sic!) shebang, so it won't work out-of-the box if 
only python-ciarosvg is installed.


I would recommend you to get rid of the -common package and use 
alternatives to manage /usr/bin/cairosvg symlink, that would point 
either to #!/usr/bin/python or #!/usr/bin/python3 script.



http://mentors.debian.net/debian/pool/main/c/cairosvg/cairosvg_0.4.3-1.dsc


Re fix_setup.patch, what was wrong with the original code?

Some dependencies are missing:

$ python -c 'import cairosvg'
Traceback (most recent call last):
File string, line 1, in module
File /usr/lib/python2.7/dist-packages/cairosvg/__init__.py, line 27, in 
module
  from . import surface
File /usr/lib/python2.7/dist-packages/cairosvg/surface/__init__.py, line 23, in 
module
  import cairo
ImportError: No module named cairo

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120608141946.ga7...@jwilk.net