aboutsummaryrefslogtreecommitdiff
path: root/freeze.py
blob: 48034dc894ac12d1b7d9f1a4905c72aa0735d2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from cx_Freeze import setup, Executable
import sys

# Dependencies are automatically detected, but it might need
# fine tuning.

buildOptions = dict(
    packages=[],
    excludes=[
        "apport",
        "apt",
        "curses",
        "distutils",
        "email",
        "html",
        "http",
        "xmlrpc",
        "nose"
    ],
    include_files=[
        "mainwindow.ui",
        "presetmanager.ui",
        "background.png",
        "encoder-options.json",
        "components/"
    ],
    includes=[
        'numpy.core._methods',
        'numpy.lib.format'
    ]
)


base = 'Win32GUI' if sys.platform == 'win32' else None

executables = [
    Executable(
        'main.py',
        base=base,
        targetName='audio-visualizer-python'
    )
]


setup(
    name='audio-visualizer-python',
    version='1.0',
    description='GUI tool to render visualization videos of audio files',
    options=dict(build_exe=buildOptions),
    executables=executables
)