def assert_package_not_installed(name):
try:
pkg_resources.get_distribution(name)
except pkg_resources.DistributionNotFound:
return
else:
raise RuntimeError(
"Found %r. This has been superseded by 'sentry-plugins', so please uninstall." % name
)
评论列表
文章目录