From 3fcd62f71950c8e75338ed093ca146e25a534fc3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 1 Dec 2010 02:01:12 +0000 Subject: [PATCH] scons: solaris expects 64 bit python modules to be in a subdirectory called '64' that appears to not need an __init__.py --- bindings/python/SConscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/python/SConscript b/bindings/python/SConscript index ce3aec275..4429aad93 100644 --- a/bindings/python/SConscript +++ b/bindings/python/SConscript @@ -209,8 +209,14 @@ if env['HAS_CAIRO'] or env['HAS_PYCAIRO']: _mapnik = py_env.LoadableModule('mapnik/_mapnik2', sources, LIBS=libraries, LDMODULEPREFIX='', LDMODULESUFFIX='.so',LINKFLAGS=linkflags) +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: - pymapniklib = env.Install(target_path,_mapnik) + pymapniklib = env.Install(cxx_module_path,_mapnik) py_env.Alias(target='install',source=pymapniklib) if 'install' in COMMAND_LINE_TARGETS: if is_py3():