Alex Rivera | Logout

How to distribute "statically compiled " Python application with dependencies

Asked 2012-03-26T14:56:19.167
8

I have an application that is based on Python. I want to distribute this application to users on different OS'es (primarily Linux, but various distributions).

What is the recommended way of doing this? I do not want users to have to install Python. I would like to distribute Python with the application (which is free software). Kinda like a statically compiled program.

So that installation of the entire application is just unzipping some files in a folder, and then both Python (and modules used) and the application is all contained in this folder (including subfolders).

How do other people distribute their Python programs?

It is a requirement that the application does not break if the user does install Python on their own or upgrades an existing python. This is why I need to distribute a copy of Python along with the application.

Edit
Report

1 Answer

3

What is the recommended way of doing this? I do not want users to have to install Python.

Typically, Python programs are 'packaged' with disutils and installed for use with an existing Python interpreter.

see: Distributing Python Modules and Installing Python Modules

It is not common to bundle the whole interpreter inside your software distribution (though certainly possible).

answered 2012-04-25T21:14:37.013

Your Answer