Skip to content

handling hidden imports which are only available on some targets #8641

Closed Answered by bwoodsend
maxbachmann asked this question in Help
Discussion options

You must be logged in to vote

Are these hidden imports your own submodules or external modules that they depend on?

I have some hidden imports which only exist for specific hardware + os combinations like windows x64. How should those be listed in the hiddenimports? I assume I can't just ask Python for it since the packaging tool wouldn't necessarily run on the target os.

PyInstaller is not a cross compiler so conditionals around platform.system() and platform.machine() are fine.

As far as I understood it's preferable to list only hidden imports which actually exist so there are no warnings about hidden imports.

It is in the backs of our minds that we need to change the warnings for missing hidden inputs. I think …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxbachmann
Comment options

Answer selected by maxbachmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants