[MacPorts] #59518: python38's distutils.sysconfig contains the wrong linking flags.

MacPorts noreply at macports.org
Tue Oct 29 20:57:08 UTC 2019


#59518: python38's distutils.sysconfig contains the wrong linking flags.
--------------------+----------------------
 Reporter:  mamoll  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  python38
--------------------+----------------------
 This produces the wrong output:

 {{{
 > python3.8 -c "import distutils.sysconfig;
 print(distutils.sysconfig.get_config_var('LINKFORSHARED'))"
 -L/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/config-3.8-darwin
 -lpython3.8m -ldl -framework CoreFoundation
 }}}

 In Python3.8 the library doesn't have the {{{m}}} suffix. This leads to
 problems when python-related packages use distutils to determine
 compilation flags: https://github.com/macports/macports-
 ports/commit/8fe8bee1d144ab961ce986e7ea568921e3b336f7

-- 
Ticket URL: <https://trac.macports.org/ticket/59518>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list