This repository has been archived on 2025-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
small-projects/export-to-exe.py

20 lines
541 B
Python

# for EXE output, run:
# python3 export-to-exe.py build
# for MSI output, run:
# python3 export-to-exe.py bdist_msi
# for DMG output, run:
# python3 export-to-exe.py bdist_dmg
import cx_Freeze
executables = [cx_Freeze.Executable("sorting-visualisations.py")] # change the Python file to the one you want to export
cx_Freeze.setup(
name = "Sorting Algorithms",
options = {
"build_exe": {
"packages": ["pygame", "time"],
"include_files": ["Roboto-Regular.ttf"]
}},
executables = executables
)