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
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))"