Several executables

29 views
Skip to first unread message

Vincent Le Goff

unread,
Dec 30, 2019, 12:01:11 PM12/30/19
to pyins...@googlegroups.com
Hello everyone,


I would guess this question was asked before (and a lot), but I couldn't
find a proper explanation.


Here I have a Python project that would like to create, not one or two
executables (.exe files in my case, being on Windows), but at least
four.  Since they would use the same libraries (like a PythonXX.dll
file), I would appreciate some kind of optimization to avoid having to
place each executable in a different directory.


So my questions are:


1. Can PyInstaller do that, seeing as it seems to only allow one executable?

2. Can I use the 'onefile' feature?  Well, since I'll have four
executables, I would want 4 files, not one, the DLLs and other files
would be contained in the executables themselves.


Floor's yours!


Thanks,


Vincent

Igor Ridanovic

unread,
Dec 31, 2019, 7:21:49 AM12/31/19
to pyins...@googlegroups.com
You could have a package installer save the .dll file to a shared location. You'd just need to ensure your code is importing from this shared path. The obvious disadvantage is that the .exe files would not be self contained and would require the end user to install the software first.

Igor Riđanović

213.293.8230 Los Angeles
hdhead.com  metafide.com

M. Agus Setiadi

unread,
Jan 2, 2020, 5:48:12 AM1/2/20
to pyins...@googlegroups.com
Perhaps you can consider use .bat file to call .exe.

Thanks

--
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 pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/31483547-6bab-b48e-c932-6f4e16d2723e%40gmail.com.

Steve Barnes

unread,
Jan 2, 2020, 3:00:32 PM1/2/20
to pyins...@googlegroups.com

You could have one executable, with sub-commands a bit like git, and then have .bat files to simplify the user interface.

Reply all
Reply to author
Forward
0 new messages