[minor] [install] updated requirements and use python2.7

This commit is contained in:
Anand Doshi 2013-11-18 12:06:33 +05:30
parent 63945b2e81
commit 0ebe35bbe0

View File

@ -14,16 +14,21 @@ requirements = [
"cssmin", "cssmin",
"dropbox", "dropbox",
"google-api-python-client", "google-api-python-client",
"gunicorn",
"httplib2",
"jinja2", "jinja2",
"markdown2", "markdown2",
"MySQL-python", "markupsafe",
"mysql-python",
"pygeoip", "pygeoip",
"python-dateutil", "python-dateutil",
"python-memcached", "python-memcached",
"pytz==2013b", "pytz==2013d",
"requests", "requests",
"six",
"slugify",
"termcolor", "termcolor",
"Werkzeug" "werkzeug"
] ]
def install(install_path): def install(install_path):
@ -279,8 +284,8 @@ def create_user(username, password):
def setup_cron(install_path): def setup_cron(install_path):
erpnext_cron_entries = [ erpnext_cron_entries = [
"*/3 * * * * cd %s && python lib/wnf.py --run_scheduler >> erpnext-sch.log 2>&1" % install_path, "*/3 * * * * cd %s && python2.7 lib/wnf.py --run_scheduler >> erpnext-sch.log 2>&1" % install_path,
"0 */6 * * * cd %s && python lib/wnf.py --backup >> erpnext-backup.log 2>&1" % install_path "0 */6 * * * cd %s && python2.7 lib/wnf.py --backup >> erpnext-backup.log 2>&1" % install_path
] ]
for row in erpnext_cron_entries: for row in erpnext_cron_entries:
try: try: