[python-mapnik] 01/02: Add patch to fix installation of mapnik.printing module. (closes: #843974)

Bas Couwenberg sebastic at debian.org
Fri Nov 11 12:05:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-mapnik.

commit e10ec6ae3f12cfa2e9c0c5d7902a888c04381881
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Nov 11 12:38:36 2016 +0100

    Add patch to fix installation of mapnik.printing module. (closes: #843974)
---
 debian/changelog                                   |  7 +++++
 debian/patches/pr123-install-mapnik-printing.patch | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 44 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 91f25c9..1677097 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-mapnik (1:0.0~20161104-ea5fd11-2) UNRELEASED; urgency=medium
+
+  * Add patch to fix installation of mapnik.printing module.
+    (closes: #843974)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 11 Nov 2016 12:38:05 +0100
+
 python-mapnik (1:0.0~20161104-ea5fd11-1) unstable; urgency=medium
 
   * New upstream git snapshot.
diff --git a/debian/patches/pr123-install-mapnik-printing.patch b/debian/patches/pr123-install-mapnik-printing.patch
new file mode 100644
index 0000000..f72542a
--- /dev/null
+++ b/debian/patches/pr123-install-mapnik-printing.patch
@@ -0,0 +1,36 @@
+Description: Fix printing module.
+ Currently the printing module isn't being installed by setup.py
+Author: Asbjørn Sloth Tønnesen <asbjorn at asbjorn.st>
+Origin: https://github.com/mapnik/python-mapnik/pull/123
+
+--- a/setup.py
++++ b/setup.py
+@@ -256,7 +256,7 @@ if os.environ.get("CXX", False) == False
+ setup(
+     name="mapnik",
+     version="0.1",
+-    packages=['mapnik'],
++    packages=['mapnik','mapnik.printing'],
+     author="Blake Thompson",
+     author_email="flippmoke at gmail.com",
+     description="Python bindings for Mapnik",
+--- a/mapnik/printing/__init__.py
++++ b/mapnik/printing/__init__.py
+@@ -65,6 +65,7 @@ class PDFPrinter(object):
+     Main class for creating PDF print outs. Basic usage is along the lines of
+ 
+     import mapnik
++    import mapnik.printing
+ 
+     page = mapnik.printing.PDFPrinter()
+     m = mapnik.Map(100,100)
+--- a/test/python_tests/pdf_printing_test.py
++++ b/test/python_tests/pdf_printing_test.py
+@@ -6,6 +6,7 @@ from nose.tools import eq_
+ from nose.plugins.skip import SkipTest
+ 
+ import mapnik
++import mapnik.printing
+ from .utilities import execution_path, run_all
+ 
+ def setup():
diff --git a/debian/patches/series b/debian/patches/series
index 691a82a..73018c5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 skip-tests-for-missing-data.patch
+pr123-install-mapnik-printing.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-mapnik.git



More information about the Pkg-grass-devel mailing list