Commit 1212a8dd authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[pkg] Drop SandboxViolation verification cracking

Dunno what this is for. Let's see if this work without.
parent 08628d6d57ee
......@@ -23,7 +23,6 @@
import io
import os
import sys
from os.path import dirname, exists, isdir, join
from setuptools import setup
......@@ -70,24 +69,6 @@ def get_packages(directory, prefix):
return result
import setuptools.command.easy_install # only if easy_install available
# monkey patch: Crack SandboxViolation verification
from setuptools.sandbox import DirectorySandbox as DS
old_ok = DS._ok
def _ok(self, path):
"""Return True if ``path`` can be written during installation."""
out = old_ok(self, path) # here for side effect from setuptools
realpath = os.path.normcase(os.path.realpath(path))
allowed_path = os.path.normcase(sys.prefix)
if realpath.startswith(allowed_path):
out = True
return out
DS._ok = _ok
except ImportError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment