~boringcactus/vidslice

ref: 9045791ade39f464b6fdb42483490526ad439475 vidslice/setup.py -rw-r--r-- 923 bytes
9045791a — Melody Horn cycle out the api key oops 1 year, 11 months ago
                                                                                
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
import os
import sys

from cx_Freeze import setup, Executable

from vidslice import VERSION

# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages=[], excludes=[])

PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
if sys.platform == "win32":
    dlls_folder = os.path.join(PYTHON_INSTALL_DIR, 'DLLs')
    targets = ['libcrypto', 'libssl']
    include_files = []
    for dll in os.listdir(dlls_folder):
        for target in targets:
            if target.startswith(target):
                include_files.append(os.path.join(dlls_folder, dll))
    buildOptions['include_files'] = include_files

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

executables = [
    Executable('vidslice.py', base=base)
]

setup(name='vidslice',
      version=VERSION,
      description='',
      options=dict(build_exe=buildOptions),
      executables=executables)