Skip to content

Is it possible to include the entire standard lib? #8901

Answered by rokm
jessielw asked this question in PyInstaller
Discussion options

You must be logged in to vote

Is this possible?

There's no built-in option for that, but it should be doable via hiddenimports in a way that you already attempted.

However, this will include some but not all libs causing failures.

What modules do you end up missing if you use the lists from stdlib-list? Those seem to include both top-level stdlib modules/packages and their submodules.

Whereas sys.stdlib_module_names seems to include only top-level module/package names, so you might need to combine it with PyInstaller.utils.hooks.collect_submodules (while explicitly exempting this and antigravity).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jessielw
Comment options

@rokm
Comment options

rokm Dec 1, 2024
Maintainer

@jessielw
Comment options

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