8 513 B

123456789101112131415161718192021
  1. #setup.py: Some Py2EXE setup stuff
  2. #ln=\nif False:\n\tNone
  3. py2exe_console = [{
  4. 'script': './youtube_dl/__main__.py',
  5. 'dest_base': 'youtube-dl',
  6. 'version': __version__,
  7. 'description': DESCRIPTION,
  8. 'comments': LONG_DESCRIPTION,
  9. 'product_name': 'youtube-dl',
  10. 'product_version': __version__,
  11. }]
  12. py2exe_params = {
  13. 'console': py2exe_console,
  14. 'options': {'py2exe': py2exe_options},
  15. 'zipfile': None
  16. }
  17. if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
  18. params = py2exe_params