[MacPorts] #62212: spice-gtk: Meson build fails with "Python module six not found" with Python 3.9

MacPorts noreply at macports.org
Fri Jun 11 21:29:23 UTC 2021


#62212: spice-gtk: Meson build fails with "Python module six not found" with Python
3.9
------------------------------+----------------------
  Reporter:  rseichter        |      Owner:  danchr
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.4
Resolution:                   |   Keywords:
      Port:  spice-gtk meson  |
------------------------------+----------------------

Comment (by kencu):

 please also see all these other meson/python examples where we do the
 exact same thing:
 {{{
 $ ag find_installation
 devel/glib2-devel/files/patch-meson-build-python-path.diff
 1:GLib2 tries to find "python3" and if it can't find it, it will go for
 "python"; if port select wasn't explicitly run, this will likely end-up
 with Python 2.7. As a fallback, meson can use whatever python it's running
 on if the argument to find_installation is empty.
 10:-python = import('python').find_installation('python3')
 11:+python = import('python').find_installation('')

 gnome/gedit/files/patch-gedit-meson-build-python3.diff
 7:-python3 = python.find_installation('python3')
 8:+python3 = python.find_installation('@@PYTHON3@@')

 gnome/gedit-plugins/files/patch-python3-bin.diff
 7:-  python3 = python.find_installation('python3')
 8:+  python3 = python.find_installation('@@PYTHON3_BIN@@')

 gnome/gitg/files/patch-libgitg-ext-meson-build.diff
 9:+  python = import('python').find_installation('@@PYTHON3_BIN@@')

 gnome/libgit2-glib/files/patch-meson-find-mp-python3.diff
 8:+  python = import('python').find_installation('@@PYTHON3_BIN@@')

 gnome/mm-common/files/patch-use-our-python3.diff
 7:-python3 = import('python').find_installation('python3')
 8:+python3 = import('python').find_installation('@@PYTHON3_BIN@@')
 KensMacBookPro:macports-ports cunningh$

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62212#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list