Thank you for the suggestions but after using them to package my script, my script would no long function properly after being unpackaged. But I am actually looking for a way to condense my script, which utilizes wexpect, to a single .exe file. Like as if you were to use pyinstaller --onefile myscript.py. However, wexpect does not work with --onefile so I'm looking for some workaround or another way to create a single .exe file of my script. Currently my script runs properly using the method found here, https://github.com/raczben/wexpect/wiki/Wexpect-with-pyinstaller. This method leaves me with 3,000+ files within a folder, which is not desirable.
On Thursday, January 20, 2022 at 3:26:12 AM UTC-6 [email protected] wrote: > Once you've got a pile of files that need to be moved to other machine en > masse, you're out of PyInstaller's domain. You need to look at NSIS or MSI > or Inno Setup or one of the other packages that put all those files into an > installer that can then be shipped to end users. I've used all three of > those mentioned, and I'd say Inno Setup is the easiest to get started with. > > Of course, you could always "go cheap" and just put everything into a .zip > and tell your users, "unzip this somewhere, then click on the .exe..." > Above mentioned installers basically do exactly this, plus give you a good > mechanism to create shortcuts with icons, set registry entries and all that > fancy stuff. > > On Wed, Jan 19, 2022 at 10:09 AM Blake D. <[email protected]> wrote: > >> Thank you, It works perfectly now after fixing the bug on line 103 of >> host.py for wexpect and by using the instructions listed here, >> https://github.com/raczben/wexpect/wiki/Wexpect-with-pyinstaller. >> >> I now have another question. The compiled folders of my script + wexpect >> are full of many different files and I am curious of how I may be able to >> compress all this down to a single .exe file or to a few of them? Since I >> can't use the "onefile" feature of pyinstaller due to wexpect, I am now >> looking for an alternative way to have the minimal amount of required files >> in order to properly run my script on a new windows environment that >> doesn't have python. >> > -- 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/6a8c51a2-20c2-4e83-ae65-4318d3d6b16bn%40googlegroups.com.
