handling hidden imports which are only available on some targets #8641
-
In one of my libraries I do provide a pyinstaller hook to list hidden imports. As far as I understood it's preferable to list only hidden imports which actually exist so there are no warnings about hidden imports.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are these hidden imports your own submodules or external modules that they depend on?
PyInstaller is not a cross compiler so conditionals around
It is in the backs of our minds that we need to change the warnings for missing hidden inputs. I think we'll eventually make it that any missing hidden import from a hook is a silent no-op Assuming that by hidden imports not existing you really do mean they're not there and not that they merely raise exceptions, collect_submodules() will give you the list of only submodules that exist. |
Beta Was this translation helpful? Give feedback.
Are these hidden imports your own submodules or external modules that they depend on?
PyInstaller is not a cross compiler so conditionals around
platform.system()
andplatform.machine()
are fine.It is in the backs of our minds that we need to change the warnings for missing hidden inputs. I think …