diff options
| author | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2019-11-17 14:51:29 +0100 |
|---|---|---|
| committer | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2019-12-03 20:39:09 +0100 |
| commit | 3ce80d312f5da83d97674aff57e238e7a621ccb8 (patch) | |
| tree | 00a6f93185ea4cbcdcfe2a0b3688f4fa39ed0603 /build_scripts/platforms/unix.py | |
| parent | d4764a4c514ec15f4cd680143cbd189482af6251 (diff) | |
Replace OPTION_* by a dictionary
Currently we are importing * from the options.py file,
which is a problem for the linters to discover if we are properly
using the options of the file.
Having a dictionary provides also a better way of access these options,
and it is more clean than having one variable per each option.
Change-Id: Ie70bd88665357b85e2842c5df269857504ecccdf
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
| -rw-r--r-- | build_scripts/platforms/unix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index 7f9a6ba94..abca942b9 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -44,7 +44,7 @@ from .linux import prepare_standalone_package_linux from .macos import prepare_standalone_package_macos from ..config import config -from ..options import * +from ..options import OPTION from ..utils import copydir, copyfile, makefile from ..utils import regenerate_qt_resources @@ -191,7 +191,7 @@ def prepare_packages_posix(self, vars): filter=["*.pyi"], vars=vars) - if not OPTION_NOEXAMPLES: + if not OPTION["NOEXAMPLES"]: def pycache_dir_filter(dir_name, parent_full_path, dir_full_path): if fnmatch.fnmatch(dir_name, "__pycache__"): return False @@ -209,7 +209,7 @@ def prepare_packages_posix(self, vars): regenerate_qt_resources(examples_path, pyside_rcc_path, pyside_rcc_options) # Copy Qt libs to package - if OPTION_STANDALONE: + if OPTION["STANDALONE"]: if config.is_internal_pyside_build() or config.is_internal_shiboken_generator_build(): vars['built_modules'] = generated_config['built_modules'] if sys.platform == 'darwin': |
