]> jfr.im git - yt-dlp.git/blame - build_exe.py
Added py2exe script
[yt-dlp.git] / build_exe.py
CommitLineData
770234af
FV
1from distutils.core import setup
2import py2exe
3import sys
4
5# If run without args, build executables
6if len(sys.argv) == 1:
7 sys.argv.append("py2exe")
8
9sys.path.append('./youtube_dl')
10
11options = {
12 "bundle_files": 1,
13 "compressed": 1,
14 "optimize": 2,
15 "dist_dir": '.',
16 "dll_excludes": ['w9xpopen.exe']
17}
18
19console = [{
20 "script":"./youtube_dl/__main__.py",
21 "dest_base": "youtube-dl",
22}]
23
24setup(
25 console = console,
26 options = {"py2exe": options},
27 zipfile = None,
28)
29
30import shutil
31shutil.rmtree("build")
32