setup.py
branchstable
changeset 9542 79b9bf88be28
parent 9516 6e2244784b7d
child 10614 57dfde80df11
equal deleted inserted replaced
9540:43b4895a150f 9542:79b9bf88be28
   186             if self.install_dir.endswith('egg'):
   186             if self.install_dir.endswith('egg'):
   187                 self.install_dir = sys.prefix
   187                 self.install_dir = sys.prefix
   188             MyInstallMoreData.run(self)
   188             MyInstallMoreData.run(self)
   189             self.install_dir = _old_install_dir
   189             self.install_dir = _old_install_dir
   190     try:
   190     try:
   191         import setuptools.command.easy_install # only if easy_install avaible
   191         import setuptools.command.easy_install # only if easy_install available
   192         # monkey patch: Crack SandboxViolation verification
   192         # monkey patch: Crack SandboxViolation verification
   193         from setuptools.sandbox import DirectorySandbox as DS
   193         from setuptools.sandbox import DirectorySandbox as DS
   194         old_ok = DS._ok
   194         old_ok = DS._ok
   195         def _ok(self, path):
   195         def _ok(self, path):
   196             """Return True if ``path`` can be written during installation."""
   196             """Return True if ``path`` can be written during installation."""