[MacPorts] #56120: pkg-config fails to find python3 (was: pkgconfig fails to find python3)
MacPorts
noreply at macports.org
Thu Mar 22 17:35:33 UTC 2018
#56120: pkg-config fails to find python3
-------------------------------------------------+-------------------------
Reporter: aleb | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.4.2
Resolution: | Keywords:
Port: python27 python34 python35 |
python36 python_select |
-------------------------------------------------+-------------------------
Changes (by raimue):
* cc: raimue (added)
* port: => python27 python34 python35 python36 python_select
Comment:
For those that stumble over this ticket while doing builds outside of
MacPorts, the workaround is to set `PKG_CONFIG_PATH` manually:
{{{
$ pkg-config --print-provides python3
Package python3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python3' found
$ export
PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/pkgconfig
$ pkg-config --print-provides python3
python3 = 3.6
}}}
I agree that we do not want to use `python3.pc` when building a port.
However, `python3.pc` could be managed by `python_select`. We also already
have symlinks for the `python3` and `python3-config` binaries. If a build
system uses `pkg-config ... python3`, it would be the same as using
`python3-config`. We will always have to handle these cases, most probably
with patches.
--
Ticket URL: <https://trac.macports.org/ticket/56120#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list