-try:
- version = subprocess.checkoutput(["git", "describe", "--abbrev=0", "--tags"])
-except:
- 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,
-)
+# 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',
+ maintainer = 'Philipp Hagemeister',
+ maintainer_email = 'phihag@phihag.de',
+ packages = ['youtube_dl', 'youtube_dl.extractor'],