aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-23 07:52:21 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-08-27 07:46:58 -0400
commit6170f1175eefebb0e9a4e44a6b093a90c178622f (patch)
tree497083d2db9bced0f258ade340f92717018f8f1b
parent959e1bb2e396fbc4969374121e625fadef701e02 (diff)
downloadmeson-6170f1175eefebb0e9a4e44a6b093a90c178622f.zip
meson-6170f1175eefebb0e9a4e44a6b093a90c178622f.tar.gz
meson-6170f1175eefebb0e9a4e44a6b093a90c178622f.tar.bz2
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.
-rw-r--r--mesonbuild/modules/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index c525685..bb6b9ab 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