Skip to content

Simple example of bundling a Python app with cxfreeze

Notifications You must be signed in to change notification settings

abeshenov/cxfreeze-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple example of cx_Freeze

  • app.py is an example app which uses extra packages (numpy in this case).

  • requirements.txt contains a list of dependencies, including cx_Freeze.

  • Dockerfile builds an executable with cxfreeze.

To do that manually, first run

pip install --no-cache-dir --requirement requirements.txt

Then

cxfreeze app.py

The result is a folder build/exe.linux-x86_64-<Python-version>/. It contains an executable binary app and a lot of dependencies in the lib dir.

About

Simple example of bundling a Python app with cxfreeze

Topics

Resources

Stars

Watchers

Forks