]>
Raphaƫl G. Git Repositories - youtubedl/blob - setup.py
2391c527298299a616551d77a3a7a07d764df38d
2 # -*- coding: utf-8 -*-
4 from __future__
import print_function
10 from setuptools
import setup
12 from distutils
.core
import setup
15 # This will create an exe that needs Microsoft Visual C++ 2008
16 # Redistributable Package
19 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
20 print("Cannot import py2exe", file=sys
.stderr
)
28 "dll_excludes": ['w9xpopen.exe'],
32 "script": "./youtube_dl/__main__.py",
33 "dest_base": "youtube-dl",
37 'console': py2exe_console
,
38 'options': {"py2exe": py2exe_options
},
42 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
43 params
= py2exe_params
46 'scripts': ['bin/youtube-dl'],
47 'data_files': [ # Installing system-wide would require sudo...
48 ('etc/bash_completion.d', ['youtube-dl.bash-completion']),
49 ('share/doc/youtube_dl', ['README.txt']),
50 ('share/man/man1/', ['youtube-dl.1'])
54 # Get the version from youtube_dl/version.py without importing the package
55 exec(compile(open('youtube_dl/version.py').read(),
56 'youtube_dl/version.py', 'exec'))
61 description
='YouTube video downloader',
62 long_description
='Small command-line program to download videos from'
63 ' YouTube.com and other video sites.',
64 url
='https://github.com/rg3/youtube-dl',
65 author
='Ricardo Garcia',
66 author_email
='ytdl@yt-dl.org',
67 maintainer
='Philipp Hagemeister',
68 maintainer_email
='phihag@phihag.de',
69 packages
=['youtube_dl', 'youtube_dl.extractor'],
71 # Provokes warning on most systems (why?!)
72 # test_suite = 'nose.collector',
73 # test_requires = ['nosetest'],
76 "Topic :: Multimedia :: Video",
77 "Development Status :: 5 - Production/Stable",
78 "Environment :: Console",
79 "License :: Public Domain",
80 "Programming Language :: Python :: 2.6",
81 "Programming Language :: Python :: 2.7",
82 "Programming Language :: Python :: 3",
83 "Programming Language :: Python :: 3.3"