mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
chore: show PYPI message as warning
This commit is contained in:
parent
8972a06fd6
commit
5dd3f5ce12
@ -19,8 +19,7 @@ def cli():
|
||||
change_uid()
|
||||
|
||||
if is_dist_editable("bench"):
|
||||
log("bench is installed in editable mode!")
|
||||
print("Install bench via PYPI for production instead, using `pip install frappe-bench`")
|
||||
log("bench is installed in editable mode!\n\nThis is not the recommended mode of install for production. Use the PYPI package using `pip install frappe-bench` instead\n", level=3)
|
||||
|
||||
if len(sys.argv) > 2 and sys.argv[1] == "frappe":
|
||||
return old_frappe_cli()
|
||||
|
Loading…
Reference in New Issue
Block a user