But that's basically what you are doing by feeding PyInstaller your
script.  PyInstaller scans your source for imports and only includes what
it finds by searching the dependencies exhaustively.  I'm guessing if you
try to do this manually, you are going to run into grief pretty quickly as
it's a very tricky task to know exactly what underlying packages and
SOs/DLLs each package needs to run.

On Fri, Mar 27, 2020 at 2:13 AM abhishek bhatta <[email protected]>
wrote:

> Thanks Amir,
>
> I looked into that but there are too many packages that needs to be in the
> exclude list. That is going to be an overhead, is there some way to just
> point which packages to import.
>
> On Friday, March 27, 2020 at 12:50:07 AM UTC+5:30, Amir Rossert wrote:
>>
>> Hi, try to look at —hidden-import and —exclude-module flags
>>
>> https://pythonhosted.org/PyInstaller/usage.html#what-to-bundle-where-to-search
>
> --
> 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/7052d4a3-3cf6-4c12-99bc-ad0cf1b97b34%40googlegroups.com
> <https://groups.google.com/d/msgid/pyinstaller/7052d4a3-3cf6-4c12-99bc-ad0cf1b97b34%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%2BU8pLx3WCYggStPQiGEj1qhcqzb6cV%2Bj8r1X6-B28bBbg%40mail.gmail.com.

Reply via email to