def before_feature(context, feature):
    is_software_installed = some_foo_magic()
if not is_software_installed:
    for scenario in feature.scenarios:
        if depends_on_software(scenario):
            scenario.mark_skipped()
Skip a behave step in the step implementation