diff options
-rw-r--r-- | music_sampler.py | 2 | ||||
-rw-r--r-- | music_sampler.spec | 35 |
2 files changed, 10 insertions, 27 deletions
diff --git a/music_sampler.py b/music_sampler.py index 7c0fc32..a7faea2 100644 --- a/music_sampler.py +++ b/music_sampler.py | |||
@@ -1,3 +1,5 @@ | |||
1 | import kivy | ||
2 | kivy.require("1.9.1") | ||
1 | from kivy.app import App | 3 | from kivy.app import App |
2 | from kivy.uix.floatlayout import FloatLayout | 4 | from kivy.uix.floatlayout import FloatLayout |
3 | from kivy.uix.relativelayout import RelativeLayout | 5 | from kivy.uix.relativelayout import RelativeLayout |
diff --git a/music_sampler.spec b/music_sampler.spec index fca4005..a56c2dd 100644 --- a/music_sampler.spec +++ b/music_sampler.spec | |||
@@ -1,36 +1,17 @@ | |||
1 | # -*- mode: python -*- | 1 | # -*- mode: python -*- |
2 | from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal, hookspath, runtime_hooks | ||
2 | 3 | ||
3 | block_cipher = None | 4 | excluded_and_hidden_modules = get_deps_minimal(video=None, camera=None, audio=None, clipboard=None, spelling=None) |
5 | excluded_and_hidden_modules['hiddenimports'] += [ 'six', 'packaging', 'packaging.version', 'packaging.specifiers', 'packaging.requirements'] | ||
4 | 6 | ||
5 | a = Analysis(['music_sampler.py'], | 7 | a = Analysis(['music_sampler.py'], |
6 | binaries=None, | 8 | binaries=None, |
7 | datas=[ | 9 | datas=[ |
8 | ('config.yml', '.'), | ||
9 | ('fonts/*', 'fonts'), | 10 | ('fonts/*', 'fonts'), |
10 | ('musicsampler.kv', '.') | 11 | ('musicsampler.kv', '.') |
11 | ], | 12 | ], |
12 | hiddenimports=[ | 13 | hookspath=hookspath(), |
13 | 'six', | 14 | runtime_hooks=runtime_hooks(), |
14 | 'packaging', | 15 | **excluded_and_hidden_modules) |
15 | 'packaging.version', | 16 | pyz = PYZ(a.pure, a.zipped_data) |
16 | 'packaging.specifiers', | 17 | exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name='music_sampler') |
17 | 'packaging.requirements' | ||
18 | ], | ||
19 | hookspath=[], | ||
20 | runtime_hooks=[], | ||
21 | excludes=[], | ||
22 | win_no_prefer_redirects=False, | ||
23 | win_private_assemblies=False, | ||
24 | cipher=block_cipher) | ||
25 | pyz = PYZ(a.pure, a.zipped_data, | ||
26 | cipher=block_cipher) | ||
27 | exe = EXE(pyz, | ||
28 | a.scripts, | ||
29 | a.binaries, | ||
30 | a.zipfiles, | ||
31 | a.datas, | ||
32 | name='music_sampler', | ||
33 | debug=False, | ||
34 | strip=False, | ||
35 | upx=True, | ||
36 | console=True ) | ||