[MacPorts] #65870: icu @71.1 sets incorrect Python version

MacPorts noreply at macports.org
Thu Oct 20 17:44:09 UTC 2022


#65870: icu @71.1 sets incorrect Python version
------------------------+-----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.2
Resolution:             |   Keywords:  tiger ppc
      Port:  icu        |
------------------------+-----------------------

Comment (by ryandesign):

 Peter is reporting that the build system now wants a version of Python 3,
 but MacPorts was telling it to use a version of Python 2:

 Replying to [ticket:65870 ballapete]:
 > {{{
 > checking for python3... /opt/local/bin/python2.7
 > }}}

 If the build system now requires Python 3, the port should ensure that it
 always supplies a version of Python 3. IIRC, Python 3 was not supplied
 with the OS until macOS 10.15, so the port should depend on port:python310
 and set `configure.python ${prefix}/bin/python3.10` for macOS earlier than
 10.15 and should set `configure.python /usr/bin/python3` for macOS 10.15
 and later.

 One must indeed be careful about circular dependencies with the compilers,
 but the python310 port already declares that it is a dependency of the
 newer clang compilers (by including the clang_dependency portgroup, just
 like the icu port does) which should avoid the problem.

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


More information about the macports-tickets mailing list