我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用setuptools.glob.glob.split()。
def write_toplevel_names(cmd, basename, filename): pkgs = dict.fromkeys( [ k.split('.', 1)[0] for k in cmd.distribution.iter_distribution_names() ] ) cmd.write_file("top-level names", filename, '\n'.join(sorted(pkgs)) + '\n')