From d463883f6ff982c75dfdd2d1a4558daed6ee4d73 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 15 Jul 2010 00:40:52 +0000 Subject: [PATCH] scons: making sure things exist - prepping for out of source build --- SConstruct | 1 + bindings/python/SConscript | 3 +++ 2 files changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 413d33229..053dd2a93 100644 --- a/SConstruct +++ b/SConstruct @@ -728,6 +728,7 @@ if not preconfigured: env['HAS_CAIRO'] = False env['HAS_PYCAIRO'] = False env['HAS_LIBXML2'] = False + env['SVN_REVISION'] = None env['LIBDIR_SCHEMA'] = LIBDIR_SCHEMA env['PLUGINS'] = PLUGINS diff --git a/bindings/python/SConscript b/bindings/python/SConscript index a72a82ea7..0031b07ec 100644 --- a/bindings/python/SConscript +++ b/bindings/python/SConscript @@ -119,6 +119,9 @@ exp = r"%s{2,}" % os.sep # Note: we use prefix rather than install_prefix here since install_prefix is for package building # and we intend for python to look to the standard prefix location to find the fonts and plugins mapnik_lib_path = re.sub(exp,os.sep, prefix + '/' + env['LIBDIR_SCHEMA'] + env['LIB_DIR_NAME']) + +if not os.path.exists('mapnik'): + os.mkdir('mapnik') file('mapnik/paths.py','w').write(paths % (mapnik_lib_path)) try: