Skip to content

Instantly share code, notes, and snippets.

@Rishi-Bidani
Last active April 26, 2021 08:57
Show Gist options
  • Save Rishi-Bidani/da92cd3a80f5941ef8c535003f2f5c4e to your computer and use it in GitHub Desktop.
Save Rishi-Bidani/da92cd3a80f5941ef8c535003f2f5c4e to your computer and use it in GitHub Desktop.
Cx_Freeze setup for packaging python projects to exe
py setup.py build
import cx_Freeze
from cx_Freeze import *
setup (
name = "Name",
version='1.0',
description="Some desc",
options = {'build_exe':{'packages': ['pygame','someOtherPackage']}},
executables = [Executable("Name.py",)]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment