[python-mapnik] 01/05: Imported Upstream version 0.0~20170120-8139e5c
Bas Couwenberg
sebastic at debian.org
Mon Feb 6 19:03:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository python-mapnik.
commit 98cdad82be6e7e62bd557234ed29bb09c859fe29
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Mon Feb 6 19:40:50 2017 +0100
Imported Upstream version 0.0~20170120-8139e5c
---
mapnik/printing/__init__.py | 1 +
setup.py | 2 +-
test/python_tests/pdf_printing_test.py | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/mapnik/printing/__init__.py b/mapnik/printing/__init__.py
index b9d06b1..023f138 100644
--- 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)
diff --git a/setup.py b/setup.py
index 23be235..9d9e665 100755
--- 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",
diff --git a/test/python_tests/pdf_printing_test.py b/test/python_tests/pdf_printing_test.py
index fa2af93..4586237 100644
--- a/test/python_tests/pdf_printing_test.py
+++ b/test/python_tests/pdf_printing_test.py
@@ -31,6 +31,8 @@ def make_pdf(m, output_pdf, esri_wkt):
page.add_geospatial_pdf_header(m, output_pdf, wkt=esri_wkt)
if mapnik.has_pycairo():
+ import mapnik.printing
+
def test_pdf_printing():
source_xml = '../data/good_maps/marker-text-line.xml'.encode('utf-8')
m = make_map_from_xml(source_xml)
--
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