Skip to content

Commit 940d605

Browse files
committed
Fixes for Windows Pre-Built
1 parent 435d36b commit 940d605

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

setup-prebuilt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
options = {
99
'build_exe': {
1010
'packages':packages,
11-
'excludes':["pygame", "numpy"],
11+
'excludes':["pygame", "numpy", "tkinter"],
1212
},
1313
}
1414

1515
setup(
1616
name = "uno_synth.py",
1717
options = options,
18-
version = "0.1.0.0",
18+
version = "0.2.0.0",
1919
description = "Library for working with Uno Synth config files",
2020
executables = executables
2121
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name = "uno_synth",
6-
version = "0.1.0",
6+
version = "0.2.0",
77
author = "Simon Wood",
88
author_email = "[email protected]",
99
description = "Library for working with Uno Synth config files",

uno_synth.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REM redirect to prebuilt/py2exe file
2+
3+
build\exe.win-amd64-3.10\uno_synth.exe %*

uno_synth.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,7 @@ def main():
249249
if _hasMido:
250250
if options.preset or options.read or options.write or options.backup \
251251
or options.restore:
252-
if sys.platform == 'win32':
253-
name = bytes(options.midi, 'ascii')
254-
else:
255-
name = options.midi
252+
name = options.midi
256253
for port in mido.get_input_names():
257254
if port[:len(name)]==name:
258255
inport = mido.open_input(port)
@@ -472,7 +469,7 @@ def main():
472469
import mido
473470
_hasMido = True
474471
if sys.platform == 'win32':
475-
mido.set_backend('mido.backends.rtmidi_python')
472+
mido.set_backend('mido.backends.rtmidi')
476473
except ImportError:
477474
_hasMido = False
478475
'''

0 commit comments

Comments
 (0)