You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
538 B

  1. from distutils.core import setup
  2. import py2exe
  3. import sys
  4. # If run without args, build executables
  5. if len(sys.argv) == 1:
  6. sys.argv.append("py2exe")
  7. sys.path.append('./youtube_dl')
  8. options = {
  9. "bundle_files": 1,
  10. "compressed": 1,
  11. "optimize": 2,
  12. "dist_dir": '.',
  13. "dll_excludes": ['w9xpopen.exe']
  14. }
  15. console = [{
  16. "script":"./youtube_dl/__main__.py",
  17. "dest_base": "youtube-dl",
  18. }]
  19. setup(
  20. console = console,
  21. options = {"py2exe": options},
  22. zipfile = None,
  23. )
  24. import shutil
  25. shutil.rmtree("build")