[MacPorts] #64916: Pythons 3.x for ppc+ppc64 on Leopard: No module named 'msvcrt', '_posixsubprocess' errors, how to fix?

MacPorts noreply at macports.org
Thu Mar 31 17:30:18 UTC 2022


#64916: Pythons 3.x for ppc+ppc64 on Leopard: No module named 'msvcrt',
'_posixsubprocess' errors, how to fix?
--------------------------------------------+------------------------------
  Reporter:  barracuda156                   |      Owner:  (none)
      Type:  defect                         |     Status:  new
  Priority:  Normal                         |  Milestone:
 Component:  ports                          |    Version:  2.7.2
Resolution:                                 |   Keywords:  powerpc,
      Port:  python38, python39, python310  |  leopard, ppc64
--------------------------------------------+------------------------------

Comment (by barracuda156):

 In addition to the patch, this was changed in portfile:

 {{{
         foreach arch ${configure.universal_archs} {
             lappend universal_arch_flags -arch ${arch}
             if {${arch} in {i386}} {
                 lappend arch_run_32bit -${arch}
                 lappend lipo_32bit_flags -extract ${arch}
             } elseif {${arch} in {ppc}} {
                 lappend arch_run_32bit -${arch}
                 lappend lipo_32bit_flags -extract ppc7400
             } else {
                 set any64 yes
             }
         }
 }}}

 Because `-extract ppc` is a wrong flag and it doesn't work.

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


More information about the macports-tickets mailing list