How to create installer for python application?

3.4k views Asked by At

I have developed an application which has multiple file and some dependent libraries such as bacpypes, requests, rdflib etc.

I want to create an installer which will install all the packages along with the application so that the user need not to download the packages separately.

Currently to deploy the application, i am copying source code, installing libraries using pip or external download.

2

There are 2 answers

0
sophros On

You may want to consider SetupTools.

From the introduction to SetupTools: Setuptools is a collection of enhancements to the Python distutils that allow developers to more easily build and distribute Python packages, especially ones that have dependencies on other packages.

0
Adam Ł. On

Use this - Pyinstaller

PyInstaller freezes (packages) Python applications into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX.

PyInstaller’s main advantages over similar tools are that PyInstaller works with Python 3.5—3.7, it builds smaller executables thanks to transparent compression, it is fully multi-platform, and use the OS support to load the dynamic libraries, thus ensuring full compatibility.