Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.whl files larger than expected #1380

Open
ghost opened this issue Jul 30, 2019 · 4 comments
Open

.whl files larger than expected #1380

ghost opened this issue Jul 30, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2019

If you download from here:

https://pypi.org/simple/pywin32

you can check the size:

$ wc -c pywin32-224-cp36-cp36m-win_amd64.whl
9056372 pywin32-224-cp36-cp36m-win_amd64.whl

Then if you download Python itself from here:

https://python.org/downloads/release/python-374

you can check the size:

$ wc -c python-3.7.4-embed-amd64.zip
7504391 python-3.7.4-embed-amd64.zip

So pywin32 is larger than Python itself. Is this expected?

@thopiekar
Copy link
Contributor

If I don't remember incorrectly, the PyWin32 package comes with documentation, too. I think there was a .chm file (html documentation) inside, too.
And yes, I think the size is fine and you probably compare it with the bare minimum of Python - the interpreter and standard modules - so the difference is logical.

@mhammond
Copy link
Owner

mhammond commented Sep 9, 2019

I had a quick look and the .whl files seems to have the same as the executables - I suspect the .whl files simply aren't compressed (but I failed to find out how to do that in the minute I spent on it :)

@mhammond mhammond changed the title Size .whl files larger than expected Sep 9, 2019
@Avasam
Copy link
Collaborator

Avasam commented Mar 17, 2024

Wheels are already zip files (which works on a per-file compression).
Upstream issues and discussions for potential improvements:

The currently used bdist_wheel command is deprecated, and using any current or future compression improvements from the wheel package will require tackling #2208 first

@Avasam
Copy link
Collaborator

Avasam commented Mar 26, 2024

To @thopiekar 's point:
Uncompressed the .chm file is 2.5MB, more than 12% the Windows x86-64 uncompressed wheel
Compressed it accounts for ~1.5MB, almost 19% of the Windows x86-64 compressed wheel
Granted PRs like #2217 and #2218 may change that result a bit in the future.

pywin32 could ship a link file to the online doc instead.
Otherwise the wheel size file looks fine, and most improvements are gonna come from upstream packaging ecosystem.

There's only 80KB of actual html files in win32com.
The rest is actual code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants