2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 00:37:51 +00:00

Merge pull request #563 from rmehta/install-frappe-first

[py3] install frappe first
This commit is contained in:
Achilles Rasquinha 2018-02-05 16:13:03 +05:30 committed by GitHub
commit 2dc796ba87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,6 @@ def print_bench_version(ctx, param, value):
def bench_command(bench_path='.'):
"""Bench manager for Frappe"""
import bench
from bench.app import get_current_frappe_version
from bench.utils import setup_logging
bench.set_frappe_version(bench_path=bench_path)
@ -129,9 +128,12 @@ def migrate_env(python, no_backup = False):
# TODO: Options
papps = osp.join(path, 'apps')
for app in os.listdir(papps):
papp = osp.join(papps, app)
apps_path = osp.join(path, 'apps')
apps = os.listdir(apps_path)
apps = ['frappe'] + [app for app in apps if app!='frappe']
for app in apps:
papp = osp.join(apps_path, app)
if osp.isdir(papp) and osp.exists(osp.join(papp, 'setup.py')):
pip = osp.join(pvenv, 'bin', 'pip')
exec_cmd('{pip} install -e {app}'.format(