[MacPorts] #64352: python39 @3.9.9_0+universal: fails to build on Mac OS X 10.7 Lion

MacPorts noreply at macports.org
Tue Jan 4 11:45:48 UTC 2022


#64352: python39 @3.9.9_0+universal: fails to build on Mac OS X 10.7 Lion
---------------------------+----------------------
  Reporter:  johnrosshunt  |      Owner:  jmroot
      Type:  defect        |     Status:  accepted
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:
      Port:  python39      |
---------------------------+----------------------

Comment (by jmroot):

 Try this:
 {{{#!diff
 diff --git a/lang/python39/Portfile b/lang/python39/Portfile
 index 1f2689f3ab2..ce3b69da4ca 100644
 --- a/lang/python39/Portfile
 +++ b/lang/python39/Portfile
 @@ -70,7 +70,10 @@ configure.args      --enable-
 framework=${frameworks_dir} \

  configure.ccache    no
  # pkg-config removes -I flags for paths in CPATH, which confuses python.
 -configure.env       PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
 +configure.env       PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
 +                    SETUPTOOLS_USE_DISTUTILS=stdlib
 +build.env           SETUPTOOLS_USE_DISTUTILS=stdlib
 +destroot.env        SETUPTOOLS_USE_DISTUTILS=stdlib

  post-patch {
      reinplace "s|@@PREFIX@@|${prefix}|g" \
 }}}

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


More information about the macports-tickets mailing list