-setup(name='youtube-dl',
- version=version,
- long_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'],
- #test suite
- test_suite='nose.collector',
- test_requires=['nosetest'],
- console=console,
- options={"py2exe": options},
- scripts=['bin/youtube-dl'],
- zipfile=None,
-)
+# Get the version from youtube_dl/version.py without importing the package
+exec(compile(open('youtube_dl/version.py').read(),
+ 'youtube_dl/version.py', 'exec'))
+
+setup(
+ name='youtube_dl',
+ version=__version__,
+ description='YouTube video downloader',
+ long_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',
+ author_email='ytdl@yt-dl.org',
+ maintainer='Philipp Hagemeister',
+ maintainer_email='phihag@phihag.de',
+ packages=['youtube_dl', 'youtube_dl.extractor'],