I would try the following:
- copy your source code directory to a tmp directory
- in this tmp directory you would replace your .py files by .pyd files.
- then you would supply this tmp directory to pyinstaller instead your
source code
- run pyinstaller with --onefile mode
- create script to automate this process

I think this way pyinstaller would automatically include your .pyd files
into one .exe executable.


Czarek píše v Ne 20. 11. 2011 v 10:54 -0800:
> 
> I see some solutions:
> 
> 1(*). Allow me to pack my .pyd files along with the main application-
> wrapper.py
> that resides in the exe. (probably inside some zip - btw. how does it
> work?
> I tried viewing the exe using Resource Editor and it didn't show any
> resources,
> except the icon and manifest - I like it that it is hidden and not so
> easy to view,
> but also I'm curious how it's done).
> 
> 2. Allow me to create a onefile exe, but by providing a dist directory
> created
> using --onedir option, so first I create the onedir, copy missing
> dlls, then I create
> final onefile exe from the contents of this directory.
> 
> 3. There is a way to pack all the .pyd files into single .pyd file,
> I've found it here:
> http://groups.google.com/group/cython-users/msg/4587051829c63d15
> But still, don't know what to do with that code provided, are these
> functions
> part of Cython sources? Or maybe CPython sources? Anyway I have a
> feeling
> that it won't be that easy.
> 
> (*) The most I would like to use solution no 1. 

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to