Skip to content

Commit

Permalink
Create py2exe binaries for Windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
mungewell committed Dec 5, 2020
1 parent dcb2cd2 commit b8edb65
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 3 additions & 0 deletions circuit_samples.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REM redirect to prebuilt/py2exe file

build\exe.win-amd64-3.6\circuit_samples.exe %*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author = "Simon Wood",
author_email = "[email protected]",
description = "Library for Sample SysEx files for Novation Circuit",
license = "GPLv3",
license = "GPLv2",
keywords = "Novation Circuit Sample SysEx",
url = "https://github.com/mungewell/circuit_samples",
py_modules=["circuit_samples"],
Expand Down
21 changes: 21 additions & 0 deletions setup_py2exe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from cx_Freeze import setup, Executable

base = None

executables = [Executable("circuit_samples.py", base=base)]

packages = ["construct", "os", "optparse", "sys", "binascii", "mido", "rtmidi_python"]
options = {
'build_exe': {
'packages':packages,
'excludes':["pygame", "numpy"],
},
}

setup(
name = "circuit_samples.py",
options = options,
version = "0.1.0.0",
description = "Library for Sample SysEx files for Novation Circuit",
executables = executables
)

0 comments on commit b8edb65

Please sign in to comment.