From 79c3bda070a206df283e48f77d657eb847bfb6ce Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Sat, 2 Apr 2022 17:50:07 -0400
Subject: [PATCH] grpython use posix prefix scheme

Recently in Debian's pthon3.10 the default scheme for sysconfig
changed from 'posix_prefix' to 'posix_local'. GrPython.cmake
expects the 'posix_prefix' behavior. So explicity use it.

Signed-off-by: A. Maitland Bottoms <bottoms@debian.org>
---
 cmake/Modules/GrPython.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake
index 3dcd9e73b..9cb55bb5c 100644
--- a/cmake/Modules/GrPython.cmake
+++ b/cmake/Modules/GrPython.cmake
@@ -159,7 +159,7 @@ except AttributeError: pass
 
 if not install_dir:
     #find where to install the python module
-    install_dir = sysconfig.get_path('platlib')
+    install_dir = sysconfig.get_path('platlib','posix_prefix')
     prefix = sysconfig.get_config_var('prefix')
 
 #strip the prefix to return a relative path
-- 
2.30.2

