diff options
| author | tassaron | 2017-07-02 14:19:15 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-02 14:19:15 -0400 |
| commit | 38557f29f91b8abc68ec3408ce466ee8a5da815e (patch) | |
| tree | 9018c2357645aca9fd5296cfa75bf9ed0cf297ee /freeze.py | |
| parent | 0a9002b42cbfa51fb826868a215202c83c97c330 (diff) | |
rm unneeded imports, work on freezing
Diffstat (limited to 'freeze.py')
| -rw-r--r-- | freeze.py | 35 |
1 files changed, 21 insertions, 14 deletions
@@ -1,11 +1,14 @@ from cx_Freeze import setup, Executable import sys +import os # Dependencies are automatically detected, but it might need # fine tuning. +deps = [os.path.join('src', p) for p in os.listdir('src') if p] +deps.append('ffmpeg.exe' if sys.platform == 'win32' else 'ffmpeg') + buildOptions = dict( - packages=[], excludes=[ "apport", "apt", @@ -17,17 +20,21 @@ buildOptions = dict( "xmlrpc", "nose" ], - include_files=[ - "mainwindow.ui", - "presetmanager.ui", - "background.png", - "encoder-options.json", - "components/" - ], includes=[ - 'numpy.core._methods', - 'numpy.lib.format' - ] + "encodings", + "json", + "filecmp", + "numpy.core._methods", + "numpy.lib.format", + "PyQt5.QtCore", + "PyQt5.QtGui", + "PyQt5.QtWidgets", + "PyQt5.uic", + "PIL.Image", + "PIL.ImageQt", + "PIL.ImageDraw", + ], + include_files=deps, ) @@ -35,16 +42,16 @@ base = 'Win32GUI' if sys.platform == 'win32' else None executables = [ Executable( - 'main.py', + 'src/main.py', base=base, targetName='audio-visualizer-python' - ) + ), ] setup( name='audio-visualizer-python', - version='1.0', + version='2.0', description='GUI tool to render visualization videos of audio files', options=dict(build_exe=buildOptions), executables=executables |
