2 # -*- coding: utf-8 -*-
4 from __future__ import print_function
5 from distutils.core import setup
14 "dll_excludes": ['w9xpopen.exe']
18 "script": "./youtube_dl/__main__.py",
19 "dest_base": "youtube-dl",
24 """This will create an exe that needs Microsoft Visual C++ 2008 Redistributable Package"""
26 'console': py2exe_console,
27 'options': { "py2exe": py2exe_options },
31 if 'py2exe' in sys.argv:
32 print("Cannot import py2exe", file=sys.stderr)
36 # Get the version from youtube_dl/version.py without importing the package
37 exec(compile(open('youtube_dl/version.py').read(), 'youtube_dl/version.py', 'exec'))
41 version = __version__,
42 description = 'YouTube video downloader',
43 long_description = 'Small command-line program to download videos from YouTube.com and other video sites.',
44 url = 'https://github.com/rg3/youtube-dl',
45 author = 'Ricardo Garcia',
46 maintainer = 'Philipp Hagemeister',
47 maintainer_email = 'phihag@phihag.de',
48 packages = ['youtube_dl'],
50 # Provokes warning on most systems (why?!)
51 #test_suite = 'nose.collector',
52 #test_requires = ['nosetest'],
54 scripts = ['bin/youtube-dl'],
55 data_files = [('etc/bash_completion.d', ['youtube-dl.bash-completion']), # Installing system-wide would require sudo...
56 ('share/doc/youtube_dl', ['README.txt']),
57 ('share/man/man1/', ['youtube-dl.1']) ],
60 "Topic :: Multimedia :: Video",
61 "Development Status :: 5 - Production/Stable",
62 "Environment :: Console",
63 "License :: Public Domain",
64 "Programming Language :: Python :: 2.6",
65 "Programming Language :: Python :: 2.7",
66 "Programming Language :: Python :: 3",
67 "Programming Language :: Python :: 3.3"