From 5e3244c65c15955e5f13888c79c4bdf474a7904b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Jan 2022 18:30:26 +0530 Subject: [PATCH] Allow using an env var to force forms to be re-built --- src/calibre/build_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/build_forms.py b/src/calibre/build_forms.py index 2036afcb9d..5a5098622f 100644 --- a/src/calibre/build_forms.py +++ b/src/calibre/build_forms.py @@ -42,7 +42,7 @@ def build_forms(srcdir, info=None, summary=False, check_for_migration=False): # Ensure that people running from source have all their forms rebuilt for # the qt5 migration - force_compile = False + force_compile = os.environ.get('CALIBRE_FORCE_BUILD_UI_FORMS', '') in ('1', 'yes', 'true') if check_for_migration: from calibre.gui2 import gprefs force_compile = not gprefs.get(f'migrated_forms_to_qt{qt_major}', False)