[MacPorts] #63356: meson PortGroup: find an easier method to set the desired python rather than patch-and-reinplace python in every port

MacPorts noreply at macports.org
Thu Jul 4 02:10:47 UTC 2024


#63356: meson PortGroup: find an easier method to set the desired python rather
than patch-and-reinplace python in every port
-------------------------+-------------------------------------------------
  Reporter:  Lord-       |      Owner:  (none)
  Kamina                 |
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:  fixed       |   Keywords:  meson, python, python_select, path,
      Port:  meson       |  portgroup
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 The existence of `meson.native.binaries` addresses this issue.

 To override meson's choice when a meson.build file uses
 `find_program('foo')`, use:

 {{{#!tcl
 meson.native.binaries-append \
                     foo=${prefix}/bin/foo
 }}}

 To override meson's choice when a meson.build file uses
 `import('python').find_installation('python3')`, use e.g.:

 {{{#!tcl
 meson.native.binaries-append \
                     python=${prefix}/bin/python3.12
 }}}

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


More information about the macports-tickets mailing list