pythonmacospackagekivy

How do I make my Python Script into an Executable .dmg file for Mac?


I have a Python script that opens up a Python window using the package Kivy while processing data using many other packages.

Is there a way for me to combine all of these into a .dmg file that when run, installs all the necessary packages and launches the Python application as a .app file?

I know there are a lot of factors and this is specific, but any help would be appreciated.


Solution

  • My recommendation would be to use py2app - https://py2app.readthedocs.io/en/latest/

    Here's some installation instructions.

    And here's a small tutorial because why reinvent the wheel - they explain it well, it's a really simple process.