Bug#823549: python-mapnik: please build with pycairo support

Asbjørn Sloth Tønnesen asbjorn at asbjorn.st
Thu May 5 20:20:25 UTC 2016


Package: python-mapnik
Severity: wishlist
Tags: patch

With the current package pycairo support is missing:

>>> import mapnik
_frozen_importlib:222: RuntimeWarning: to-Python converter for std::shared_ptr<mapnik::geometry::geometry<double> > already registered; second conversion method ignored.
_frozen_importlib:222: RuntimeWarning: to-Python converter for std::shared_ptr<mapnik::feature_impl> already registered; second conversion method ignored.
_frozen_importlib:222: RuntimeWarning: to-Python converter for std::shared_ptr<mapnik::Featureset> already registered; second conversion method ignored.
_frozen_importlib:222: RuntimeWarning: to-Python converter for std::shared_ptr<mapnik::datasource> already registered; second conversion method ignored.
_frozen_importlib:222: RuntimeWarning: to-Python converter for std::shared_ptr<mapnik::image_any> already registered; second conversion method ignored.
>>> mapnik.has_cairo()
True
>>> mapnik.has_pycairo()
False

With the attached patch mapnik.has_pycairo() also returns True.

There already is a dependency on python-cairo in the control file,
the condition in setup.py (line 230) just didn't get triggered.

Related upstream issue:
https://github.com/mapnik/python-mapnik/issues/58

Without pycairo support, the included mapnik.printing doesn't work
nor fail nicely.

-- 
Best regards
Asbjørn Sloth Tønnesen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-Cairo-support.patch
Type: application/octet-stream
Size: 623 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20160505/b23b549d/attachment.obj>


More information about the Pkg-grass-devel mailing list