diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-12 16:31:08 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-07-13 16:43:14 -0700 |
commit | d6e606166e557d36512e36e0013f2a27a9407d61 (patch) | |
tree | 6866e91e17e991ce68796e2ee3b2b401e58dfcca /mesonbuild/modules/python.py | |
parent | 20399a3e041a193e222ee856347f3774f1afad93 (diff) | |
download | meson-d6e606166e557d36512e36e0013f2a27a9407d61.zip meson-d6e606166e557d36512e36e0013f2a27a9407d61.tar.gz meson-d6e606166e557d36512e36e0013f2a27a9407d61.tar.bz2 |
modules/python: make some internal helpers protected
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r-- | mesonbuild/modules/python.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 69ee89f..ee33fc5 100644 --- a/mesonbuild/modules/python.py +++ b/mesonbuild/modules/python.py @@ -123,7 +123,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): self.compile_args += ['-I' + path for path in inc_paths if path] - def get_windows_python_arch(self) -> T.Optional[str]: + def _get_windows_python_arch(self) -> T.Optional[str]: if self.platform == 'mingw': pycc = self.variables.get('CC') if pycc.startswith('x86_64'): @@ -141,7 +141,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): mlog.log(f'Unknown Windows Python platform {self.platform!r}') return None - def get_windows_link_args(self) -> T.Optional[T.List[str]]: + def _get_windows_link_args(self) -> T.Optional[T.List[str]]: if self.platform.startswith('win'): vernum = self.variables.get('py_version_nodot') if self.static: @@ -169,7 +169,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): Find python3 libraries on Windows and also verify that the arch matches what we are building for. ''' - pyarch = self.get_windows_python_arch() + pyarch = self._get_windows_python_arch() if pyarch is None: self.is_found = False return @@ -191,7 +191,7 @@ class PythonSystemDependency(SystemDependency, _PythonDependencyBase): self.is_found = False return # This can fail if the library is not found - largs = self.get_windows_link_args() + largs = self._get_windows_link_args() if largs is None: self.is_found = False return |