Skip to content

py2app packaging #10

@johnty

Description

@johnty

I've been experimenting with the packaging process, and have ran into the following:

  • seems like an older version (0.16) of py2app is needed
  • how large the package you end up with, depends heavily on the python environment regardless of what libraries you're using for the application itself. as such i think the best way is to use a clean virtualenv. (this could also explain why in the past we generated binaries of different sizes... i just tried with the anaconda installed version of python and made a 400MB file ;)
  • however, there seem to be some missing libraries depending on what configuration you start with. currently for some reason libffi is not being included automatically in my particular setup.

the basic process to bundle the package is to just run the following after py2app is installed:

python setup.py py2app

also note that currently setup.py doesn't include the html folder in data_files, so that needs to be added to the list for the base html file to be included in the package it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions