Skip to content Skip to sidebar Skip to footer

Deploying Python App To Mac And Windows Users

I've written an app in python that depends on wxPython and some other python libraries. I know about pyexe for making python scripts executable on Windows, but what would be the ea

Solution 1:

You could check out py2app, which is similar to py2exe

Solution 2:

How do people usually deploy such apps?

2 choices.

  1. With instructions.

  2. All bundled up.

You write simple instructions like this. Folks can follow these pretty reliably, unless they don't have enough privileges. Sometimes they need to sudo in linux environments.

  1. Download easy_install (or pip)

  2. easy_install this, easy_install that (or pip this, pip that)

  3. easy_install whatever package you wrote.

It works really well. If you download some Python packages you'll see this in action. Sphinx requires docutils. Django requires docutils and PIL. It works out really well to simply document the dependencies. Other folks seem to do it without serious problems. Follow their lead.

Bundling things up means you have to

(a) provide the entire original distribution (as required by most open source licenses)

(b) provide a compatible open source license with the licenses of the things you bundled. This can be easy if you depend on things that all of the same license. Otherwise, you basically can't redistribute them and have to resort to installation instructions.

Post a Comment for "Deploying Python App To Mac And Windows Users"