diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-23 07:52:21 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-27 07:46:58 -0400 |
commit | 6170f1175eefebb0e9a4e44a6b093a90c178622f (patch) | |
tree | 497083d2db9bced0f258ade340f92717018f8f1b /mesonbuild/modules/python.py | |
parent | 959e1bb2e396fbc4969374121e625fadef701e02 (diff) | |
download | meson-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.
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r-- | mesonbuild/modules/python.py | 2 |
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 |