def _parse_pkg_string(pkg):
 (pkg_name, separator, pkg_ver) = pkg.partition('-')
 return (pkg_name.strip(), separator, pkg_ver.strip())

def _parse_pkg_string ( pkg ) : ( pkg_name , separator , pkg_ver ) = pkg . partition ( '-' ) return ( pkg_name . strip ( ) , separator , pkg_ver . strip ( ) )
parse pkg string and return a tuple of package name .