-init_file = open('./youtube_dl/__init__.py')
-for line in init_file.readlines():
- if line.startswith('__version__'):
- version = line[11:].strip(" ='\n")
- break
-else:
- version = ''
-
-setup(name='youtube-dl',
- version=version,
- description='Small command-line program to download videos from YouTube.com and other video sites',
- url='https://github.com/rg3/youtube-dl',
- packages=['youtube_dl'],
-
- console = console,
- options = {"py2exe": options},
- zipfile = None,
-)
+execfile('youtube_dl/version.py')
+
+setup(
+ name = 'youtube_dl',
+ version = __version__,
+ description = 'Small command-line program to download videos from YouTube.com and other video sites',
+ url = 'https://github.com/rg3/youtube-dl',
+ author = 'Ricardo Garcia',
+ maintainer = 'Philipp Hagemeister',
+ maintainer_email = 'phihag@phihag.de',
+ packages = ['youtube_dl'],