1 Star 0 Fork 8

应胜斌/BindGUI

forked from gibsonxue/BindGUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
check-dependencies.py 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
"""Script to verify required/optional dependencies are installed."""
import sys
errors = 0
try:
from bs4 import BeautifulSoup
except ImportError:
print "Could not import BeautifulSoup. This is a required module for Binder. It is automatically installed with pybindxml.\n"
errors += 1
try:
import django
except ImportError:
print "Could not import Django. This is a required package for Binder.\n"
errors += 1
try:
import dns
except ImportError:
print "Could not import dns. This is a required module for Binder."
print "Package is typically called 'python-dnspython.'\n"
errors += 1
try:
import pybindxml
except ImportError:
print "Could not import pybindxml. This is a required module for Binder.\n"
print "Pybindxml: https://pypi.python.org/pypi/pybindxml"
errors += 1
try:
import flup
except ImportError:
print "Could not import flup. This is an optional module if you intend to run Binder under fastcgi."
print "Package is typically called 'python-flup.'\n"
if errors:
print "Critical missing packages found: %d.\n" % errors
sys.exit(errors)
else:
print "All required packages found!"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qinshiysb/BindGUI.git
git@gitee.com:qinshiysb/BindGUI.git
qinshiysb
BindGUI
BindGUI
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385