def installable_condition_ok(item):
    'Returns a boolean to indicate if an installable_condition predicate\n        in the current item passes. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('installable_condition'):
        if (not info.predicate_evaluates_as_true(item['installable_condition'])):
            rejected_items.append(('Rejected item %s, version %s with installable_condition: %s.' % (item['name'], item['version'], item['installable_condition'])))
            return False
    return True
Returns a boolean to indicate if an installable_condition predicate
in the current item passes. If not, also adds the failure reason to
the rejected_items list.
def installable_condition_ok(item):
    'Returns a boolean to indicate if an installable_condition predicate\n        in the current item passes. If not, also adds the failure reason to\n        the rejected_items list.'
    if item.get('installable_condition'):
        if (not info.predicate_evaluates_as_true(item['installable_condition'])):
            rejected_items.append(('Rejected item %s, version %s with installable_condition: %s.' % (item['name'], item['version'], item['installable_condition'])))
            return False
    return True