skeleton/setup.py
changeset 9516 6e2244784b7d
parent 8695 358d8bed9626
child 10214 88f60d4b9952
equal deleted inserted replaced
9515:b0dd5b57d2d8 9516:6e2244784b7d
   148             if self.install_dir.endswith('egg'):
   148             if self.install_dir.endswith('egg'):
   149                 self.install_dir = sys.prefix
   149                 self.install_dir = sys.prefix
   150             old_install_data.run(self)
   150             old_install_data.run(self)
   151             self.install_dir = _old_install_dir
   151             self.install_dir = _old_install_dir
   152     try:
   152     try:
   153         import setuptools.command.easy_install # only if easy_install avaible
   153         import setuptools.command.easy_install # only if easy_install available
   154         # monkey patch: Crack SandboxViolation verification
   154         # monkey patch: Crack SandboxViolation verification
   155         from setuptools.sandbox import DirectorySandbox as DS
   155         from setuptools.sandbox import DirectorySandbox as DS
   156         old_ok = DS._ok
   156         old_ok = DS._ok
   157         def _ok(self, path):
   157         def _ok(self, path):
   158             """Return True if ``path`` can be written during installation."""
   158             """Return True if ``path`` can be written during installation."""