This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
pyaudviz/freeze.py

60 lines
1.2 KiB
Python
Raw Permalink Normal View History

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
from setup import __version__
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",
"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',
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
)