2017-06-23 18:38:05 -04:00
|
|
|
from cx_Freeze import setup, Executable
|
|
|
|
import sys
|
2017-07-02 14:19:15 -04:00
|
|
|
import os
|
2017-06-23 18:38:05 -04:00
|
|
|
|
2017-07-20 22:37:15 -04:00
|
|
|
from setup import __version__
|
2017-07-20 20:31:38 -04:00
|
|
|
|
2017-06-23 18:38:05 -04:00
|
|
|
|
2017-07-02 14:19:15 -04:00
|
|
|
deps = [os.path.join('src', p) for p in os.listdir('src') if p]
|
|
|
|
deps.append('ffmpeg.exe' if sys.platform == 'win32' else 'ffmpeg')
|
|
|
|
|
2017-06-23 18:38:05 -04:00
|
|
|
buildOptions = dict(
|
|
|
|
excludes=[
|
|
|
|
"apport",
|
|
|
|
"apt",
|
|
|
|
"curses",
|
|
|
|
"distutils",
|
|
|
|
"email",
|
|
|
|
"html",
|
|
|
|
"http",
|
|
|
|
"xmlrpc",
|
2017-07-06 19:52:46 -04:00
|
|
|
"nose",
|
|
|
|
'tkinter',
|
2017-06-23 18:38:05 -04:00
|
|
|
],
|
|
|
|
includes=[
|
2017-07-02 14:19:15 -04:00
|
|
|
"encodings",
|
|
|
|
"json",
|
|
|
|
"filecmp",
|
|
|
|
"numpy.core._methods",
|
|
|
|
"numpy.lib.format",
|
|
|
|
"PyQt5.QtCore",
|
|
|
|
"PyQt5.QtGui",
|
|
|
|
"PyQt5.QtWidgets",
|
|
|
|
"PyQt5.uic",
|
|
|
|
"PIL.Image",
|
|
|
|
"PIL.ImageQt",
|
|
|
|
"PIL.ImageDraw",
|
2017-07-06 12:40:03 -04:00
|
|
|
"PIL.ImageEnhance",
|
2017-07-02 14:19:15 -04:00
|
|
|
],
|
|
|
|
include_files=deps,
|
2017-06-23 18:38:05 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
base = 'Win32GUI' if sys.platform == 'win32' else None
|
|
|
|
|
|
|
|
executables = [
|
|
|
|
Executable(
|
2017-07-02 14:19:15 -04:00
|
|
|
'src/main.py',
|
2017-06-23 18:38:05 -04:00
|
|
|
base=base,
|
|
|
|
targetName='audio-visualizer-python'
|
2017-07-02 14:19:15 -04:00
|
|
|
),
|
2017-06-23 18:38:05 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='audio-visualizer-python',
|
2017-07-20 22:37:15 -04:00
|
|
|
version=__version__,
|
2017-06-23 18:38:05 -04:00
|
|
|
description='GUI tool to render visualization videos of audio files',
|
|
|
|
options=dict(build_exe=buildOptions),
|
|
|
|
executables=executables
|
|
|
|
)
|