On 10/10/2014 02:36 PM, Hartmut Goebel wrote:
On 10/09/2014 12:08 PM, Gelonida N wrote:
Hi,

Is it possible to create a spec file, that separates the .exe file
(Windows 7) and the zlib archive and configures the exe file such, that
it searches its modules in the separate zlib archive.


> I just tried collecting some information for you and discovered, that
> PyInstaller already supports loading the PYZ-Archive from an external
> file. It is as simply as using:
>
> exe = EXE(append_pkg=False,
>            pyz,
>            a.scripts,
>            ....
>
Thanks a lot :-) . This switch creates a 200kB executable without the .pyz at the end of the file.

I needed a little to locate the .pyz file until I figured out it's called <EXECUTABLE_NAME>.pkg


Thanks a lot as well for updating the doc.


So in theory this can allow for some 'funny' use cases, for example:

Have a project with 2 executables both sharing the same pkg.file.
- one executable with console=True
- another for exactly the same code with  console=False

Other use case could be an alternative implementation of merge
by collecting all modules into a single .pyz/.pkg file, that will be
used by all the executables.

Other use case (see thread "patching a pyinstaller release")
- having an external patch script reading, modifying, rewriting a pyz/pkg file for a project.





--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to