summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python3.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-12-22 10:05:17 -0800
committerDylan Baker <dylan@pnwbakers.com>2023-12-22 11:31:48 -0800
commit6ccd708f30e3649f6d531eebb8301132cb0f0759 (patch)
tree924efc690142069f24d4a9eaa6fb5598e2fb54c0 /mesonbuild/modules/python3.py
parent7cbaa6613a84b0a1e4b37926950bf7879eb4776d (diff)
downloadmeson-6ccd708f30e3649f6d531eebb8301132cb0f0759.tar.gz
modules: get rid of the .*machine variables
They're hardly used, and can be gotten directly from the Environment instead
Diffstat (limited to 'mesonbuild/modules/python3.py')
-rw-r--r--mesonbuild/modules/python3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/python3.py b/mesonbuild/modules/python3.py
index a5e9cca01..45ad850aa 100644
--- a/mesonbuild/modules/python3.py
+++ b/mesonbuild/modules/python3.py
@@ -41,7 +41,7 @@ class Python3Module(ExtensionModule):
@typed_pos_args('python3.extension_module', str, varargs=(str, mesonlib.File, CustomTarget, CustomTargetIndex, GeneratedList, StructuredSources, ExtractedObjects, BuildTarget))
@typed_kwargs('python3.extension_module', *_MOD_KWARGS, allow_unknown=True)
def extension_module(self, state: ModuleState, args: T.Tuple[str, T.List[BuildTargetSource]], kwargs: SharedModuleKW):
- host_system = state.host_machine.system
+ host_system = state.environment.machines.host.system
if host_system == 'darwin':
# Default suffix is 'dylib' but Python does not use it for extensions.
suffix = 'so'