Created
September 29, 2012 01:51
-
-
Save springmeyer/3802889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bindings/python/build.py b/bindings/python/build.py | |
index 2a83607..4e336d2 100644 | |
--- a/bindings/python/build.py | |
+++ b/bindings/python/build.py | |
@@ -187,18 +187,16 @@ _mapnik = py_env.LoadableModule('mapnik/_mapnik', sources, LIBS=libraries, LDMOD | |
Depends(_mapnik, env.subst('../../src/%s' % env['MAPNIK_LIB_NAME'])) | |
+cxx_module_path = target_path | |
if env['PLATFORM'] == 'SunOS' and env['PYTHON_IS_64BIT']: | |
# http://mail.python.org/pipermail/python-dev/2006-August/068528.html | |
cxx_module_path = os.path.join(target_path,'64') | |
-else: | |
- cxx_module_path = target_path | |
-if 'uninstall' not in COMMAND_LINE_TARGETS: | |
+if 'install' in COMMAND_LINE_TARGETS: | |
pymapniklib = env.Install(cxx_module_path,_mapnik) | |
py_env.Alias(target='install',source=pymapniklib) | |
- if 'install' in COMMAND_LINE_TARGETS: | |
- if is_py3(): | |
- env.AddPostAction(pymapniklib, run_2to3) | |
+ if is_py3(): | |
+ env.AddPostAction(pymapniklib, run_2to3) | |
env['create_uninstall_target'](env, target_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment