diff --git a/bindings/python/mapnik2/__init__.py b/bindings/python/mapnik2/__init__.py new file mode 100644 index 000000000..b2081103b --- /dev/null +++ b/bindings/python/mapnik2/__init__.py @@ -0,0 +1,27 @@ +# +# This file is part of Mapnik (C++/Python mapping toolkit) +# Copyright (C) 2011 Artem Pavlenko +# +# Mapnik is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +# mapnik2 module (Deprecated) + +import warnings +from mapnik import * +warnings.simplefilter("default") +msg=""" mapnik2 module has been deprecated, + please use 'import mapnik' """ +warnings.warn(msg, DeprecationWarning) diff --git a/src/build.py b/src/build.py index bf5ef1808..d702b4aea 100644 --- a/src/build.py +++ b/src/build.py @@ -327,7 +327,7 @@ if env['PLATFORM'] != 'Darwin': major, minor, micro = ABI_VERSION - soFile = "%s.%d.%d.%d" % (os.path.basename(str(mapnik[0])), major, minor, micro) + soFile = "%s.%d.%d.%d" % (os.path.basename(str(mapnik[0])), int(major), int(minor), int(micro)) target = os.path.join(env['MAPNIK_LIB_BASE_DEST'], soFile) if 'uninstall' not in COMMAND_LINE_TARGETS: @@ -338,7 +338,7 @@ if env['PLATFORM'] != 'Darwin': # Install symlinks - target1 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], "%s.%d.%d" % (os.path.basename(str(mapnik[0])),major, minor)) + target1 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], "%s.%d.%d" % (os.path.basename(str(mapnik[0])),int(major), int(minor))) target2 = os.path.join(env['MAPNIK_LIB_BASE_DEST'], os.path.basename(str(mapnik[0]))) if 'uninstall' not in COMMAND_LINE_TARGETS: if 'install' in COMMAND_LINE_TARGETS: