mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
Merge pull request #563 from rmehta/install-frappe-first
[py3] install frappe first
This commit is contained in:
commit
2dc796ba87
@ -26,7 +26,6 @@ def print_bench_version(ctx, param, value):
|
|||||||
def bench_command(bench_path='.'):
|
def bench_command(bench_path='.'):
|
||||||
"""Bench manager for Frappe"""
|
"""Bench manager for Frappe"""
|
||||||
import bench
|
import bench
|
||||||
from bench.app import get_current_frappe_version
|
|
||||||
from bench.utils import setup_logging
|
from bench.utils import setup_logging
|
||||||
|
|
||||||
bench.set_frappe_version(bench_path=bench_path)
|
bench.set_frappe_version(bench_path=bench_path)
|
||||||
@ -129,9 +128,12 @@ def migrate_env(python, no_backup = False):
|
|||||||
|
|
||||||
# TODO: Options
|
# TODO: Options
|
||||||
|
|
||||||
papps = osp.join(path, 'apps')
|
apps_path = osp.join(path, 'apps')
|
||||||
for app in os.listdir(papps):
|
apps = os.listdir(apps_path)
|
||||||
papp = osp.join(papps, app)
|
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')):
|
if osp.isdir(papp) and osp.exists(osp.join(papp, 'setup.py')):
|
||||||
pip = osp.join(pvenv, 'bin', 'pip')
|
pip = osp.join(pvenv, 'bin', 'pip')
|
||||||
exec_cmd('{pip} install -e {app}'.format(
|
exec_cmd('{pip} install -e {app}'.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user