# HG changeset patch # User Denis Laxalde # Date 1516791083 -3600 # Node ID af1245fe6b7bcb385d55b8d2d2fe020b4ab53d09 # Parent 08628d6d57eeb4324289d95bf0dd3cf1b9e1ebe3 [pkg] Drop SandboxViolation verification cracking Dunno what this is for. Let's see if this work without. diff -r 08628d6d57ee -r af1245fe6b7b setup.py --- a/setup.py Wed Jan 24 11:43:13 2018 +0100 +++ b/setup.py Wed Jan 24 11:51:23 2018 +0100 @@ -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 @@ return result -try: - 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: - pass - - setup( name=distname, version=version,