summaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/python.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-24 14:55:15 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-12-17 14:47:18 -0800
commite1164f616db78050b935e85fbc2cdb9f731e1511 (patch)
tree0bd79c4ebc99816a6301de091f770047f04e369b /mesonbuild/dependencies/python.py
parent7ddd0732c27d97fbf36a96c8c3d6bd81cc28ad0f (diff)
downloadmeson-e1164f616db78050b935e85fbc2cdb9f731e1511.tar.gz
dependencies: Require 'native' be passed in kwargs
This simplifies a bunch of cases, and likely fixes some annoying bugs in cross compile situations where should have been passing this and weren't.
Diffstat (limited to 'mesonbuild/dependencies/python.py')
-rw-r--r--mesonbuild/dependencies/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/python.py b/mesonbuild/dependencies/python.py
index ad9262981..146f41d4d 100644
--- a/mesonbuild/dependencies/python.py
+++ b/mesonbuild/dependencies/python.py
@@ -478,7 +478,7 @@ class PythonPkgConfigDependency(PkgConfigDependency, _PythonDependencyBase):
self.is_found = False
return
- for_machine = kwargs.get('native', MachineChoice.HOST)
+ for_machine = kwargs['native']
sysroot = environment.properties[for_machine].get_sys_root() or ''
pkg_libdir = sysroot + pkg_libdir