yup -- a lot of this is BIG.

numpy is 23MB on my Mac -- yours seems big -- maybe using MKL?

You may not be using all of numpy, but it's really hard to tease out what
you are really using mostly it doesn't matter: disk space is really cheap
these days. Bandwidth not always, but still, folks are used to big
downloads.

-CHB


On Sun, Mar 29, 2020 at 8:21 AM Eric Fahlgren <[email protected]>
wrote:

> On my system (Win 10 Pro 64,  Py 3.8.1) numpy itself is almost all of that
> and SciPy 1.5x that, again.  Throw in Qt and I'm surprised you're not well
> over 100 meg.  Our installer is over 350 Mb with numpy, scipy, wx and
> vtk...  Just because you don't use something directly doesn't mean it's not
> necessary to resolve dependencies.
>
>      57,630,720  T:/Python38/Lib/site-packages/numpy/
>     109,117,440  T:/Python38/Lib/site-packages/scipy/
>
> On Sat, Mar 28, 2020 at 3:44 AM abhishek bhatta <[email protected]>
> wrote:
>
>> Thanks Eric and Chris,
>>
>> I understand that Pyinstaller is checking and importing the dependencies
>> but there must either be some bug with that part or I am missing something.
>>
>> Here is the full scenario.
>> Here is all the imports I am using in my original code:
>>
>> #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> #Import
>>
>> #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> import sys
>> import time
>> import socket, errno
>> import struct
>> import datetime as dt
>> from PyQt5.QtCore import *
>> from PyQt5.QtGui import *
>> from PyQt5.QtWidgets import *
>> from collections import OrderedDict
>> from functools import reduce
>> from math import *
>> from statistics import mean
>> from threading import Thread, Lock
>> import os
>> import fnmatch
>> import paramiko
>> import shutil
>> import subprocess
>> import win32process
>> import psutil
>> import winreg
>> import numpy as np
>>
>> print("This is a test")
>>
>> #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> #End
>>
>> #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>
>> I saved it with the name "test.py".
>>
>> If I try to compile this into an exe with the following command "*pyinstaller
>> --win-private-assemblies --win-no-prefer-redirects -w -F -n test.exe
>> test.py*"
>> The size of the exe comes up to 61.1 MB
>>
>> Now if I just exclude scipy and execute the following command "*pyinstaller
>> --win-private-assemblies --win-no-prefer-redirects --exclude scipy -w -F -n
>> test.exe test.py*"
>> The size of the exe goes to 52.9 MB
>>
>> *Ques: Why does Pyinstaller consider scipy as a necessary import?*
>>
>>
>>
>> Thanks Steve,
>>
>> I am going to look into the venv setup and only install the necessary
>> packages there to find out about any other issues.
>> Also, pylint is a good way to go as well.
>>
>>
>> Regards,
>> Abhishek Bhatta
>>
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "PyInstaller" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/pyinstaller/551c94ee-d187-47f8-8127-06e4273c3080%40googlegroups.com
>> <https://groups.google.com/d/msgid/pyinstaller/551c94ee-d187-47f8-8127-06e4273c3080%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BVruN_ekZUOkSpCMOkO_Og6Xw8rFhc6z6286n__%2BzKXMA%40mail.gmail.com
> <https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BVruN_ekZUOkSpCMOkO_Og6Xw8rFhc6z6286n__%2BzKXMA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CALGmxEK-b-rJprJ%2B8jOWj53JG3tUgB0_FzR%2BcVxtn2pO60T6Nw%40mail.gmail.com.

Reply via email to