clear out invalid plugins from source directory to ensure that 'make local' target does not crash
This commit is contained in:
parent
8a5b906fc5
commit
82e9f5b68c
1 changed files with 3 additions and 0 deletions
|
@ -1699,6 +1699,9 @@ if not HELP_REQUESTED:
|
||||||
SConscript('plugins/input/%s/build.py' % plugin)
|
SConscript('plugins/input/%s/build.py' % plugin)
|
||||||
else:
|
else:
|
||||||
color_print(1,"Notice: dependencies not met for plugin '%s', not building..." % plugin)
|
color_print(1,"Notice: dependencies not met for plugin '%s', not building..." % plugin)
|
||||||
|
# also clear out locally built target
|
||||||
|
if os.path.exists('plugins/input/%s.input' % plugin):
|
||||||
|
os.unlink('plugins/input/%s.input' % plugin)
|
||||||
|
|
||||||
create_uninstall_target(env, env['MAPNIK_LIB_DIR_DEST'], False)
|
create_uninstall_target(env, env['MAPNIK_LIB_DIR_DEST'], False)
|
||||||
create_uninstall_target(env, env['MAPNIK_INPUT_PLUGINS_DEST'] , False)
|
create_uninstall_target(env, env['MAPNIK_INPUT_PLUGINS_DEST'] , False)
|
||||||
|
|
Loading…
Reference in a new issue