From 6170f1175eefebb0e9a4e44a6b093a90c178622f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 23 Aug 2021 07:52:21 -0400 Subject: [PATCH] python module: produce the correct install path on every OS The sysconfig paths are, by default, correct for every OS -- they are supposed to follow the scheme that python knows about per default. For some reason, this overrode the scheme to posix_prefix, which is the default for posix OSes like linux and macOS, but wrong on Windows. Simply deleting this entirely makes everything that used to work, still work, and a couple new things start working. --- mesonbuild/modules/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index c5256859c..bb6b9abda 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -279,7 +279,7 @@ import sysconfig import json import sys -install_paths = sysconfig.get_paths(scheme='posix_prefix', vars={'base': '', 'platbase': '', 'installed_base': ''}) +install_paths = sysconfig.get_paths(vars={'base': '', 'platbase': '', 'installed_base': ''}) def links_against_libpython(): from distutils.core import Distribution, Extension