#59518 closed defect (fixed)
python38's distutils.sysconfig contains the wrong linking flags.
Reported by: | mamoll (Mark Moll) | Owned by: | reneeotten (Renee Otten) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | jmroot (Joshua Root), pmetzger (Perry E. Metzger) | |
Port: | python38 |
Description
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
Change History (6)
comment:1 Changed 5 years ago by mamoll (Mark Moll)
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jmroot added |
---|
Josh, you maintain pythno37 and older pythons; maybe you want to maintain python38 as well?
comment:3 Changed 5 years ago by reneeotten (Renee Otten)
Joshua, I understand the whole update/addition of python38
didn't go the way it should have... Despite of that and moving forward at least I would really appreciate it if you would be willing to maintain python38
as well.
I guess many of the potential changes would be applicable to all Python ports, and you certainly have way more experience/expertise with maintaining it than most of us (and certainly than me). I would be happy though to take a look at the python38
port, compare that to python37
and python39-devel
including their patches, and see if I can do something about it, but it would definitely benefit from your expertise. What do you think?
comment:4 Changed 5 years ago by jmroot (Joshua Root)
Cc: | pmetzger added |
---|
Should just be a matter of updating the modification of sysconfig with awk in the portfile.
comment:5 Changed 5 years ago by reneeotten (Renee Otten)
Owner: | set to reneeotten |
---|---|
Resolution: | → fixed |
Status: | new → closed |
In 6836194cdfcea593e39c9b6479dd26f4f0773c54/macports-ports (master):