]>
Raphaƫl G. Git Repositories - youtubedl/blob - build_exe.py
9fa8186cbfb203d9ad2c29f7a4de13b7b33a39a1
1 from distutils
.core
import setup
5 """This will create an exe that needs Microsoft Visual C++ 2008 Redistributable Package"""
7 # If run without args, build executables
9 sys
.argv
.append("py2exe")
11 # os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) # conflict with wine-py2exe.sh
12 sys
.path
.append('./youtube_dl')
19 "dll_excludes": ['w9xpopen.exe']
23 "script":"./youtube_dl/__main__.py",
24 "dest_base": "youtube-dl",
27 init_file
= open('./youtube_dl/__init__.py')
28 for line
in init_file
.readlines():
29 if line
.startswith('__version__'):
30 version
= line
[11:].strip(" ='\n")
35 setup(name
='youtube-dl',
37 description
='Small command-line program to download videos from YouTube.com and other video sites',
38 url
='https://github.com/rg3/youtube-dl',
39 packages
=['youtube_dl'],
42 options
= {"py2exe": options
},
47 shutil
.rmtree("build")