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.

14 lines
573 B

  1. --- a/setuptools/command/easy_install.py
  2. +++ b/setuptools/command/easy_install.py
  3. @@ -1315,7 +1315,10 @@ class easy_install(Command):
  4. return # already did it, or don't need to
  5. sitepy = os.path.join(self.install_dir, "site.py")
  6. - source = resource_string("setuptools", "site-patch.py")
  7. + try:
  8. + source = resource_string("setuptools", "site-patch.py")
  9. + except FileNotFoundError:
  10. + source = resource_string("setuptools", "site-patch.py.txt")
  11. source = source.decode('utf-8')
  12. current = ""