pasteurize-script.py 1020 B

123456789101112131415161718192021222324252627282930313233
  1. #!d:\git_workspace\sanoh\airtightness_210901\venv_win32\scripts\python.exe
  2. # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
  3. import re
  4. import sys
  5. # for compatibility with easy_install; see #2198
  6. __requires__ = 'future==0.18.2'
  7. try:
  8. from importlib.metadata import distribution
  9. except ImportError:
  10. try:
  11. from importlib_metadata import distribution
  12. except ImportError:
  13. from pkg_resources import load_entry_point
  14. def importlib_load_entry_point(spec, group, name):
  15. dist_name, _, _ = spec.partition('==')
  16. matches = (
  17. entry_point
  18. for entry_point in distribution(dist_name).entry_points
  19. if entry_point.group == group and entry_point.name == name
  20. )
  21. return next(matches).load()
  22. globals().setdefault('load_entry_point', importlib_load_entry_point)
  23. if __name__ == '__main__':
  24. sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
  25. sys.exit(load_entry_point('future==0.18.2', 'console_scripts', 'pasteurize')())