build: Pin frappe requirements to ^16.0.0 (#39782)
This commit is contained in:
@@ -2,14 +2,12 @@
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
|
||||
import click
|
||||
import frappe
|
||||
from frappe import _
|
||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||
from frappe.desk.page.setup_wizard.setup_wizard import add_all_roles_to
|
||||
from frappe.utils import cint
|
||||
|
||||
import erpnext
|
||||
from erpnext.setup.default_energy_point_rules import get_default_energy_point_rules
|
||||
from erpnext.setup.doctype.incoterm.incoterm import create_incoterms
|
||||
|
||||
@@ -42,25 +40,6 @@ You can reinstall this site (after saving your data) using: bench --site [sitena
|
||||
frappe.throw(message) # nosemgrep
|
||||
|
||||
|
||||
def check_frappe_version():
|
||||
def major_version(v: str) -> str:
|
||||
return v.split(".")[0]
|
||||
|
||||
frappe_version = major_version(frappe.__version__)
|
||||
erpnext_version = major_version(erpnext.__version__)
|
||||
|
||||
if frappe_version == erpnext_version:
|
||||
return
|
||||
|
||||
click.secho(
|
||||
f"You're attempting to install ERPNext version {erpnext_version} with Frappe version {frappe_version}. "
|
||||
"This is not supported and will result in broken install. Switch to correct branch before installing.",
|
||||
fg="red",
|
||||
)
|
||||
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
def set_single_defaults():
|
||||
for dt in (
|
||||
"Accounts Settings",
|
||||
|
||||
Reference in New Issue
Block a user