setup.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from __future__ import print_function
  4. from distutils.core import setup
  5. import pkg_resources
  6. import sys
  7. try:
  8. import py2exe
  9. except ImportError:
  10. print("Cannot import py2exe", file=sys.stderr)
  11. py2exe_options = {
  12. "bundle_files": 1,
  13. "compressed": 1,
  14. "optimize": 2,
  15. "dist_dir": '.',
  16. "dll_excludes": ['w9xpopen.exe']
  17. }
  18. py2exe_console = [{
  19. "script":"./youtube_dl/__main__.py",
  20. "dest_base": "youtube-dl",
  21. }]
  22. exec(compile(open('youtube_dl/version.py').read(), 'youtube_dl/version.py', 'exec'))
  23. setup(
  24. name = 'youtube_dl',
  25. version = __version__,
  26. description = 'Small command-line program to download videos from YouTube.com and other video sites',
  27. url = 'https://github.com/rg3/youtube-dl',
  28. author = 'Ricardo Garcia',
  29. maintainer = 'Philipp Hagemeister',
  30. maintainer_email = 'phihag@phihag.de',
  31. packages = ['youtube_dl'],
  32. test_suite = 'nose.collector',
  33. test_requires = ['nosetest'],
  34. console = py2exe_console,
  35. options = { "py2exe": py2exe_options },
  36. scripts = ['bin/youtube-dl'],
  37. zipfile = None,
  38. classifiers = [
  39. "Topic :: Multimedia :: Video",
  40. "Development Status :: 5 - Production/Stable",
  41. "Environment :: Console",
  42. "License :: Public Domain",
  43. "Programming Language :: Python :: 2.6",
  44. "Programming Language :: Python :: 2.7",
  45. "Programming Language :: Python :: 3",
  46. "Programming Language :: Python :: 3.3"
  47. ]
  48. )