-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup_pkechomidi.py
More file actions
37 lines (28 loc) · 859 Bytes
/
setup_pkechomidi.py
File metadata and controls
37 lines (28 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
from cx_Freeze import setup, Executable
if hasattr(os, 'uname'):
OSNAME = os.uname()[0]
else:
OSNAME = 'Windows'
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"packages": ["os", 'rtmidi'],
"excludes": ["tkinter"],
"include_files": []
}
if OSNAME == 'Windows':
build_exe_options['include_files'] = [
os.path.relpath('C:\Python34\Lib\site-packages\PyQt5\LibEGL.dll')
]
base = None
# Uncomment for a GUI-only (no console) app
# if sys.platform == "win32":
# base = "Win32GUI"
def get_data_files():
return [('', [''])]
setup(name="PKMidiStroke",
version="0.1",
description="Trigger the triggers!",
options={"build_exe": build_exe_options},
executables=[Executable("pkechomidi", base=base)],
data_files=get_data_files())