Hello, I would like .pyd files to be treated the same as .py files, so they are included inside .exe along with other .py files (they are compiled to .pyc files right? the .py sources are not included in the exe created by pyinstaller?).
I know I could create one .exe using --onfile, but that does not work all the time, when creating onefile I encounter some dependencies problems, the solution I've found is to use --onedir and copy the missing dlls and others. I've come across Cython recently, it allows me to compile .py files to .pyd files, I would like to increase the security of my app a little, by compiling my all .py files to .pyd ones (when compiling to pyd, I also am creating an application-wrapper.py that imports these pyd files and runs main() from the application.py). From what I've read .pyd files should be harder to decompile than .pyc files, is that right? The problem that I come across now, after compiling all .py to .pyd files, is that when I run pyinstaller to create exe with --onedir option, the dist directory contains all the structure of my .py files, I don't want user to see all names of these files, as it tells some extra info about the flow of my program. 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. I tried editing .spec file and adding .pyd files to COLLECT() as an array using different typecodes from here: http://www.pyinstaller.org/export/latest/tags/1.4/doc/Manual.html#toc-class-table-of-contents But it didn't help, they were not being included inside the exe. Czarek. -- 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.
