Skip to content

Commit

Permalink
fix: don't compile python files manually. (frappe#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Jul 4, 2023
1 parent 480e35c commit 036cb62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion bench/commands/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@click.option(
"--no-compile",
is_flag=True,
help="If set, Python bytecode won't be compiled before restarting the processes",
help="[DEPRECATED] This flag doesn't do anything now.",
)
@click.option("--force", is_flag=True, help="Forces major version upgrades")
@click.option(
Expand Down
7 changes: 0 additions & 7 deletions bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,6 @@ def update(
if version_upgrade[0] or (not version_upgrade[0] and force):
post_upgrade(version_upgrade[1], version_upgrade[2], bench_path=bench_path)

if pull and compile:
from compileall import compile_dir

print("Compiling Python files...")
apps_dir = os.path.join(bench_path, "apps")
compile_dir(apps_dir, quiet=1, rx=re.compile(".*node_modules.*"))

bench.reload(web=False, supervisor=restart_supervisor, systemd=restart_systemd)

conf.update({"maintenance_mode": 0, "pause_scheduler": 0})
Expand Down

0 comments on commit 036cb62

Please sign in to comment.