def evaluate_marker(text, extra=None):
 try:
  marker = packaging.markers.Marker(text)
  return marker.evaluate()
 except packaging.markers.InvalidMarker as e:
  raise SyntaxError(e)

def evaluate_marker ( text , extra = None ) : try : marker = packaging . markers . Marker ( text ) return marker . evaluate ( ) except packaging . markers . InvalidMarker as e : raise SyntaxError ( e )
evaluate a pep 508 environment marker .