]>
Raphaƫl G. Git Repositories - youtubedl/blob - setup.py
2 # -*- coding: utf-8 -*-
4 from __future__
import print_function
10 from setuptools
import setup
11 setuptools_available
= True
13 from distutils
.core
import setup
14 setuptools_available
= False
17 # This will create an exe that needs Microsoft Visual C++ 2008
18 # Redistributable Package
21 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
22 print("Cannot import py2exe", file=sys
.stderr
)
30 "dll_excludes": ['w9xpopen.exe'],
34 "script": "./youtube_dl/__main__.py",
35 "dest_base": "youtube-dl",
39 'console': py2exe_console
,
40 'options': {"py2exe": py2exe_options
},
44 if len(sys
.argv
) >= 2 and sys
.argv
[1] == 'py2exe':
45 params
= py2exe_params
48 'data_files': [ # Installing system-wide would require sudo...
49 ('etc/bash_completion.d', ['youtube-dl.bash-completion']),
50 ('share/doc/youtube_dl', ['README.txt']),
51 ('share/man/man1', ['youtube-dl.1'])
54 if setuptools_available
:
55 params
['entry_points'] = {'console_scripts': ['youtube-dl = youtube_dl:main']}
57 params
['scripts'] = ['bin/youtube-dl']
59 # Get the version from youtube_dl/version.py without importing the package
60 exec(compile(open('youtube_dl/version.py').read(),
61 'youtube_dl/version.py', 'exec'))
66 description
='YouTube video downloader',
67 long_description
='Small command-line program to download videos from'
68 ' YouTube.com and other video sites.',
69 url
='https://github.com/rg3/youtube-dl',
70 author
='Ricardo Garcia',
71 author_email
='ytdl@yt-dl.org',
72 maintainer
='Philipp Hagemeister',
73 maintainer_email
='phihag@phihag.de',
76 'youtube_dl.extractor', 'youtube_dl.downloader',
77 'youtube_dl.postprocessor'],
79 # Provokes warning on most systems (why?!)
80 # test_suite = 'nose.collector',
81 # test_requires = ['nosetest'],
84 "Topic :: Multimedia :: Video",
85 "Development Status :: 5 - Production/Stable",
86 "Environment :: Console",
87 "License :: Public Domain",
88 "Programming Language :: Python :: 2.6",
89 "Programming Language :: Python :: 2.7",
90 "Programming Language :: Python :: 3",
91 "Programming Language :: Python :: 3.3"