def find_packages():
modules = [
"twisted.plugins",
]
def is_package(path):
return (
os.path.isdir(path) and
os.path.isfile(os.path.join(path, "__init__.py"))
)
for pkg in filter(is_package, os.listdir(".")):
modules.extend([pkg, ] + [
"{}.{}".format(pkg, subpkg)
for subpkg in setuptools_find_packages(pkg)
])
return modules
评论列表
文章目录