From: A. Maitland Bottoms Date: Tue, 12 Apr 2022 22:35:43 +0000 (-0400) Subject: [PATCH] volkpython use posix prefix scheme X-Git-Tag: archive/raspbian/2.5.1-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=acbefe9dc66956f00248413398e960835d86a3df;p=volk.git [PATCH] volkpython use posix prefix scheme 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 Gbp-Pq: Name volkpython-use-posix-prefix-scheme --- diff --git a/cmake/Modules/VolkPython.cmake b/cmake/Modules/VolkPython.cmake index 94899b5..12696d0 100644 --- a/cmake/Modules/VolkPython.cmake +++ b/cmake/Modules/VolkPython.cmake @@ -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))"