1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-28 19:40:47 +00:00

Remove some python libraries check in setup scripts.

This commit is contained in:
Jonathan Xu 2019-05-23 11:00:39 +08:00
parent 8ed31a188b
commit d20e4857e8
2 changed files with 0 additions and 9 deletions

View File

@ -70,11 +70,6 @@ function check_python () {
if [[ $PYTHON == "python2.6" ]]; then if [[ $PYTHON == "python2.6" ]]; then
py26="2.6" py26="2.6"
fi fi
hint="\nOn Debian/Ubntu: apt-get install python-setuptools\nOn CentOS/RHEL: yum install python${py26}-distribute"
check_python_module pkg_resources setuptools "${hint}"
hint="\nOn Debian/Ubntu: apt-get install python-imaging\nOn CentOS/RHEL: yum install python${py26}-imaging"
check_python_module PIL python-imaging "${hint}"
hint='\nOn Debian/Ubuntu:\n\nsudo apt-get install python-mysqldb\n\nOn CentOS/RHEL:\n\nsudo yum install MySQL-python' hint='\nOn Debian/Ubuntu:\n\nsudo apt-get install python-mysqldb\n\nOn CentOS/RHEL:\n\nsudo yum install MySQL-python'
check_python_module MySQLdb python-mysqldb "${hint}" check_python_module MySQLdb python-mysqldb "${hint}"

View File

@ -145,10 +145,6 @@ function check_python () {
if [[ $PYTHON == "python2.6" ]]; then if [[ $PYTHON == "python2.6" ]]; then
py26="2.6" py26="2.6"
fi fi
hint="\nOn Debian/Ubntu: apt-get install python-setuptools\nOn CentOS/RHEL: yum install python${py26}-distribute"
check_python_module pkg_resources setuptools "${hint}"
hint="\nOn Debian/Ubntu: apt-get install python-imaging\nOn CentOS/RHEL: yum install python${py26}-imaging"
check_python_module PIL python-imaging "${hint}"
check_python_module sqlite3 python-sqlite3 check_python_module sqlite3 python-sqlite3
fi fi
echo echo