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