Creating executable file for linux

how to make linux installer with setup.py. I made .msi from my setup.py file and here is the code for it

import cx_Freeze executables = [cx_Freeze.Executable("Slither.py")] cx_Freeze.setup( name="Slytherine", options = { "build_exe": { "packages":["pygame"], "include_files": ["apple.png", "snake_head.png", "Score.dll"] } }, description = "Snake game", executables = executables ) 

What changes must be made in order to make the Linux installer for it, or do I need to create it myself on the Linux machine itself?

+4
source share
1 answer

Linux distributions use packages that are typically deployed in repositories.

So you have two ways to distribute a python application.

  • Create a python package and upload it to PyPI so that users can install it using pip install yourapplication .
  • Creating Linux distribution packages (.deb for debian based, rpm for redhat, ...).

I recommend reading the excellent Python Packaging User Guide for an understanding of how python packages work.

For Linux distribution packages that will differ for each distribution, but for debian-based distributions, see stdeb , which converts python packages to debian packages.

+2
source

All Articles