def conda_versions(pkg_name, file_name):
 j = json.load(open(file_name))
 ret = list()
 for pkg in j['packages'].values():
  if (pkg['name'] == pkg_name):
   ret.append(('%s--%s' % (pkg['version'], pkg['build'])))
 return ret

def conda_versions ( pkg_name , file_name ) : j = json . load ( open ( file_name ) ) ret = list ( ) for pkg in j [ 'packages' ] . values ( ) : if ( pkg [ 'name' ] == pkg_name ) : ret . append ( ( '%s--%s' % ( pkg [ 'version' ] , pkg [ 'build' ] ) ) ) return ret
return all conda version strings for a specified package name .