I use virtualenv via pew (which I consider to be a fantastic tool), but I noticed something strange.
I have the scipy system side installed:
7,7 MiB [
5,1 MiB [
5,1 MiB [
5,0 MiB [
3,5 MiB [
3,0 MiB [
2,5 MiB [
2,3 MiB [
2,3 MiB [
2,2 MiB [
1,5 MiB [
1,3 MiB [
1,0 MiB [
744,0 KiB [ ] /cluster
512,0 KiB [ ] /odr
464,0 KiB [ ] /constants
252,0 KiB [ ] /_lib
44,0 KiB [ ] /_build_utils
36,0 KiB [ ] /__pycache__
24,0 KiB [ ] HACKING.rst.txt
12,0 KiB [ ] THANKS.txt
8,0 KiB [ ] INSTALL.rst.txt
4,0 KiB [ ] __init__.py
4,0 KiB [ ] __config__.py
4,0 KiB [ ] LICENSE.txt
4,0 KiB [ ] setup.py
4,0 KiB [ ] BENTO_BUILD.txt
4,0 KiB [ ] version.py
4,0 KiB [ ] linalg.pxd
And this scipy virtualenv side is installed (same scipy version):
51,0 MiB [##########] /sparse
37,6 MiB [####### ] /.libs
12,9 MiB [## ] /linalg
10,6 MiB [## ] /spatial
9,7 MiB [# ] /special
6,0 MiB [# ] /interpolate
5,9 MiB [# ] /stats
5,1 MiB [# ] /optimize
4,2 MiB [ ] /signal
3,2 MiB [ ] /io
3,0 MiB [ ] /integrate
3,0 MiB [ ] /ndimage
2,3 MiB [ ] /misc
2,1 MiB [ ] /cluster
1,7 MiB [ ] /fftpack
884,0 KiB [ ] /odr
328,0 KiB [ ] /constants
204,0 KiB [ ] /_lib
32,0 KiB [ ] /_build_utils
24,0 KiB [ ] HACKING.rst.txt
20,0 KiB [ ] /__pycache__
12,0 KiB [ ] THANKS.txt
8,0 KiB [ ] INSTALL.rst.txt
4,0 KiB [ ] __init__.py
4,0 KiB [ ] LICENSE.txt
4,0 KiB [ ] setup.py
4,0 KiB [ ] __config__.py
4,0 KiB [ ] BENTO_BUILD.txt
4,0 KiB [ ] version.py
4,0 KiB [ ] pip-delete-this-directory.txt
4,0 KiB [ ] linalg.pxd
Needless to say, there is a huge difference in size. This usually didn’t bother me much, but I am trying to link the executable to pyinstaller, and the resulting executable is unrealistically too large.
Can someone explain this difference? This does not apply to scipy, I also see it for numpy and, possibly, for other libraries.
EDIT:
Files inside directories have different sizes:
System-wide:
3,1 MiB [##########] _sparsetools.cpython-35m-x86_64-linux-gnu.so
Virtualenv wide:
38,5 MiB [##########] _sparsetools.cpython-35m-x86_64-linux-gnu.so