<s> import sys <EOL> DEPENDENCIES = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def print_package_version ( package_name , indent = '<STR_LIT:U+0020>' ) : <EOL> try : <EOL> package = __import__ ( package_name ) <EOL> version = getattr ( package , '<STR_LIT>' , None ) <EOL> package_file = getattr ( package , '<STR_LIT>' , ) <EOL> provenance_info = '<STR_LIT>' . format ( version , package_file ) <EOL> except ImportError : <EOL> provenance_info = '<STR_LIT>' <EOL> print ( '<STR_LIT>' . format ( indent , package_name , provenance_info ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> print ( '<STR_LIT:=>' * <NUM_LIT> ) <EOL> print ( '<STR_LIT>' % str ( sys . version ) ) <EOL> print ( '<STR_LIT>' % sys . executable ) <EOL> print ( '<STR_LIT>' ) <EOL> for package_name in DEPENDENCIES : <EOL> print_package_version ( package_name ) <EOL> print ( '<STR_LIT:=>' * <NUM_LIT> ) </s>
