equal
deleted
inserted
replaced
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.""" |