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.

Reply via email to