Skip to content

Commit 4cda5f9

Browse files
authored
Adds pyinstaller workaround (#1129)
1 parent 1cbaeb3 commit 4cda5f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

grr/client_builder/grr_response_client_builder/build_helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def BuildWithPyInstaller(context=None):
147147
config.CONFIG.Get("PyInstaller.workpath_dir", context=context),
148148
spec_file,
149149
]
150+
# Pyinstaller does ignore the 'ipaddress' library.
151+
# The below line is a workaround to force pyinstaller to include it.
152+
PyInstallerMain.compat.PY3_BASE_MODULES.add('ipaddress')
150153
logging.info("Running pyinstaller: %s", args)
151154
PyInstallerMain.run(pyi_args=args)
152155

0 commit comments

Comments
 (0)