Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a Mac OS X app with Python?
    text
    copied!<p>I want to create a GUI application which should work on Windows and Mac. For this I've chosen Python.</p> <p>The problem is on Mac OS X.</p> <p><strong>There are 2 tools to generate an ".app" for Mac: py2app and pyinstaller.</strong></p> <ol> <li>py2app is pretty good, but it adds the source code in the package. I don't want to share the code with the final users.</li> <li>Pyinstaller generates UNIX executable, so how to run it on Mac? I created a bundles with this executable, but the resulted ".app" is not working.</li> </ol> <p><strong>The questions are:</strong></p> <ol> <li>How to configure py2app to include the source code in the executable, so the final users will not have access to my program?</li> <li>How to convert UNIX executable to Mac ".app" ?</li> <li>Is there a way to compile Python code with GCC ?</li> <li>In Windows it's easy, I created an "exe" file from Python code and it works. Is it possible to create a single file "app" for Mac ?</li> </ol> <p>P.S. I use two computers (Windows and for Mac), Python 2.7, wxPython, py2exe, py2app and pyinstaller.</p> <p>Also, I have checked out these sites: </p> <ul> <li><a href="http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html" rel="noreferrer">http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html</a></li> <li><a href="http://www.pyinstaller.org/export/develop/project/doc/Manual.html?format=raw" rel="noreferrer">http://www.pyinstaller.org/export/develop/project/doc/Manual.html?format=raw</a></li> <li><a href="http://www.pyinstaller.org/wiki/Features/MacOsCompatibility" rel="noreferrer">http://www.pyinstaller.org/wiki/Features/MacOsCompatibility</a></li> <li><a href="http://www.stackoverflow.com/questions/2933/an-executable-python-app">http://www.stackoverflow.com/questions/2933/an-executable-python-app</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload