Warning, /graphics/krita/3rdparty/ext_pyqt/0001-MinGW-Distutils-support-hack.patch is written in an unsupported language. File is not indexed.
0001 From d13bc940f9400305cbd7474f6a74b67d76101e68 Mon Sep 17 00:00:00 2001 0002 From: Alvin Wong <alvin@alvinhc.com> 0003 Date: Mon, 24 May 2021 13:25:42 +0000 0004 Subject: [PATCH] MinGW Distutils support hack 0005 0006 --- 0007 setup.py | 17 +++++++++++++++++ 0008 1 file changed, 17 insertions(+) 0009 0010 diff --git a/setup.py b/setup.py 0011 index 18984ce..4852658 100644 0012 --- a/setup.py 0013 +++ b/setup.py 0014 @@ -20,6 +20,23 @@ 0015 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0016 # POSSIBILITY OF SUCH DAMAGE. 0017 0018 +from distutils import cygwinccompiler 0019 + 0020 + 0021 +def _get_msvcr_replacement(): 0022 + # So, the original `get_msvcr` function is supposed to return the name 0023 + # of the specific version of MS C runtime so that it can be (?) copied 0024 + # over. But we don't really need to do it since we have the packaging 0025 + # script to take care of that. 0026 + return [] 0027 + 0028 + 0029 +if not callable(cygwinccompiler.get_msvcr): 0030 + raise RuntimeError( 0031 + "distutils.cygwinccompiler.get_msvcr is not a function, which is unexpected") 0032 + 0033 +# HACK: Replace the function to apply our hack... 0034 +cygwinccompiler.get_msvcr = _get_msvcr_replacement 0035 0036 import glob 0037 import sys 0038 -- 0039 2.31.1.windows.1 0040