1. Tarek Ziadé
  2. distribute


Tarek Ziadé  committed 6847077

removing decorators from the bootstrap file

  • Participants
  • Parent commits 90ae7b2
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File distribute_setup.py

View file
  • Ignore whitespace
     return __no_sandbox
 def _patch_file(path, content):
     """Will backup the file then patch it"""
     existing_content = open(path).read()
     return True
+_patch_file = _no_sandbox(_patch_file)
 def _same_content(path, content):
     return open(path).read() == content
     os.rename(path, new_name)
     return new_name
 def _remove_flat_installation(placeholder):
     if not os.path.isdir(placeholder):
         log.warn('Unkown installation at %s', placeholder)
                      'Setuptools distribution', element)
     return True
+_remove_flat_installation = _no_sandbox(_remove_flat_installation)
 def _after_install(dist):
     log.warn('After install bootstrap.')
     placeholder = dist.get_command_obj('install').install_purelib
 def _create_fake_setuptools_pkg_info(placeholder):
     if not placeholder or not os.path.exists(placeholder):
         log.warn('Could not find the install location')
+_create_fake_setuptools_pkg_info = _no_sandbox(_create_fake_setuptools_pkg_info)
 def _patch_egg_dir(path):
     # let's check if it's already patched
     pkg_info = os.path.join(path, 'EGG-INFO', 'PKG-INFO')
     return True
+_patch_egg_dir = _no_sandbox(_patch_egg_dir)
 def _before_install():
     log.warn('Before install bootstrap.')