Skip to content

Commit

Permalink
Fixes for Windows Pre-Built
Browse files Browse the repository at this point in the history
  • Loading branch information
mungewell committed Mar 5, 2023
1 parent 435d36b commit 940d605
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions setup-prebuilt.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
options = {
'build_exe': {
'packages':packages,
'excludes':["pygame", "numpy"],
'excludes':["pygame", "numpy", "tkinter"],
},
}

setup(
name = "uno_synth.py",
options = options,
version = "0.1.0.0",
version = "0.2.0.0",
description = "Library for working with Uno Synth config files",
executables = executables
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name = "uno_synth",
version = "0.1.0",
version = "0.2.0",
author = "Simon Wood",
author_email = "[email protected]",
description = "Library for working with Uno Synth config files",
Expand Down
3 changes: 3 additions & 0 deletions uno_synth.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.10\uno_synth.exe %*
7 changes: 2 additions & 5 deletions uno_synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,7 @@ def main():
if _hasMido:
if options.preset or options.read or options.write or options.backup \
or options.restore:
if sys.platform == 'win32':
name = bytes(options.midi, 'ascii')
else:
name = options.midi
name = options.midi
for port in mido.get_input_names():
if port[:len(name)]==name:
inport = mido.open_input(port)
Expand Down Expand Up @@ -472,7 +469,7 @@ def main():
import mido
_hasMido = True
if sys.platform == 'win32':
mido.set_backend('mido.backends.rtmidi_python')
mido.set_backend('mido.backends.rtmidi')
except ImportError:
_hasMido = False
'''
Expand Down

0 comments on commit 940d605

Please sign in to comment.