New repo skeleton, getting ready for PyPi
[youtube-dl] / setup.py
1 from distutils.core import setup
2 import pkg_resources
3 import sys
4
5 try:
6     import py2exe
7 except ImportError:
8     print >> sys.stderr, "Cannot import py2exe"
9
10 py2exe_options = {
11     "bundle_files": 1,
12     "compressed": 1,
13     "optimize": 2,
14     "dist_dir": '.',
15     "dll_excludes": ['w9xpopen.exe']
16 }
17
18 py2exe_console = [{
19     "script":"./youtube_dl/__main__.py",
20     "dest_base": "youtube-dl",
21 }]
22
23 execfile('youtube_dl/version.py')
24
25 setup(
26     name = 'youtube_dl',
27     version = __version__,
28     description = 'Small command-line program to download videos from YouTube.com and other video sites',
29     url = 'https://github.com/rg3/youtube-dl',
30     author = 'Ricardo Garcia',
31     maintainer = 'Philipp Hagemeister',
32     maintainer_email = 'phihag@phihag.de',
33     packages = ['youtube_dl'],
34
35     test_suite = 'nose.collector',
36     test_requires = ['nosetest'],
37
38     console = py2exe_console,
39     options = { "py2exe": py2exe_options },
40
41     scripts = ['bin/youtube-dl'],
42     zipfile = None,
43 )