1 from distutils.core import setup
5 # If run without args, build executables
7 sys.argv.append("py2exe")
9 os.chdir(os.path.dirname(sys.argv[0]))
10 sys.path.append('./youtube_dl')
17 "dll_excludes": ['w9xpopen.exe']
21 "script":"./youtube_dl/__main__.py",
22 "dest_base": "youtube-dl",
25 init_file = open('./youtube_dl/__init__.py')
26 for line in init_file.readlines():
27 if line.startswith('__version__'):
28 version = line[11:].strip(" ='\n")
33 setup(name='youtube-dl',
35 description='Small command-line program to download videos from YouTube.com and other video sites',
36 url='https://github.com/rg3/youtube-dl',
37 packages=['youtube_dl'],
40 options = {"py2exe": options},
45 shutil.rmtree("build")