diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-11-21 15:01:52 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-11-21 15:08:46 -0800 |
commit | 203c5ce9906238ec2d793fb321a7c5b113b43600 (patch) | |
tree | 427ec71a95463543fa9d45325be0a218b6760382 | |
parent | d75fc3287e35d735ee58ffc09ec6cea2241f864b (diff) | |
download | meson-203c5ce9906238ec2d793fb321a7c5b113b43600.tar.gz |
dependencies: Don't like for python 3 in /System on macOS
That python will always be python2
-rw-r--r-- | mesonbuild/dependencies/misc.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 4a023e421..100530edd 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -1,4 +1,4 @@ -# Copyright 2013-2017 The Meson development team +# Copyright 2013-2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -622,8 +622,10 @@ class Python3Dependency(ExternalDependency): elif mesonlib.is_osx() and DependencyMethods.EXTRAFRAMEWORK in self.methods: # In OSX the Python 3 framework does not have a version # number in its name. - fw = ExtraFrameworkDependency('python', False, None, self.env, - self.language, kwargs) + # There is a python in /System/Library/Frameworks, but that's + # python 2, Python 3 will always bin in /Library + fw = ExtraFrameworkDependency( + 'python', False, '/Library/Frameworks', self.env, self.language, kwargs) if fw.found(): self.compile_args = fw.get_compile_args() self.link_args = fw.get_link_args() |