Search code examples
pythonpy2app

How to use py2app for mac


Typing in the command in the terminal python3 setup.py py2app will bundle the python code.

I am having trouble on how to organize my python source code so that py2app can bundle many files together.

So how would I organize this to make a stand alone app using py2app??

The picture of my folder and it's internals


Solution

  • I see that you are facing trouble packing all the files. You will have to use py2applet to create the setup and include all the files as arguments.

    So presuming you have music.wav and Tetris.py, you should do this

    $ py2applet --make-setup Tetris.py music.wav