scons: making sure things exist - prepping for out of source build

This commit is contained in:
Dane Springmeyer 2010-07-15 00:40:52 +00:00
parent 08e96be4a1
commit d463883f6f
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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: