2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 15:38:25 +00:00

install patched version of python-mysqldb in setup env

This commit is contained in:
Pratik Vyas 2014-11-18 22:11:38 +05:30
parent aa92c32730
commit 0b16e745b6

View File

@ -66,6 +66,7 @@ def exec_cmd(cmd, cwd='.'):
def setup_env(bench='.'): def setup_env(bench='.'):
exec_cmd('virtualenv -q {} -p {}'.format('env', sys.executable), cwd=bench) exec_cmd('virtualenv -q {} -p {}'.format('env', sys.executable), cwd=bench)
exec_cmd('./env/bin/pip -q install wheel', cwd=bench) exec_cmd('./env/bin/pip -q install wheel', cwd=bench)
exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench)
def setup_procfile(bench='.'): def setup_procfile(bench='.'):
with open(os.path.join(bench, 'Procfile'), 'w') as f: with open(os.path.join(bench, 'Procfile'), 'w') as f: