[PATCH] volkpython use posix prefix scheme
authorA. Maitland Bottoms <bottoms@debian.org>
Tue, 12 Apr 2022 22:35:43 +0000 (18:35 -0400)
committerA. Maitland Bottoms <bottoms@debian.org>
Tue, 12 Apr 2022 22:39:33 +0000 (23:39 +0100)
Recently in Debian's pthon3.10 the default scheme for sysconfig
changed from 'posix_prefix' to 'posix_local'. VolkPython.cmake
expects the 'posix_prefix' behavior. So explicity use it.

Signed-off-by: A. Maitland Bottoms <bottoms@debian.org>
Gbp-Pq: Name volkpython-use-posix-prefix-scheme

cmake/Modules/VolkPython.cmake

index 94899b5a778c8f9d04f1bc62437aae47266dbb67..12696d01fbbbaebdd6cb5b6dfaac2098ab8ee284 100644 (file)
@@ -121,7 +121,7 @@ try:
 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
 print(os.path.relpath(install_dir, prefix))"