Python34 include directory problems

Joshua Root jmr at macports.org
Mon Jul 6 12:06:01 PDT 2015


On 2015-7-7 04:45 , Michael Dickens wrote:
> I must have a short memory; I have no recollection of doing that commit.
> Thanks for the explanation of why the 'm' or 'u' or 'd' or whatever; I
> had forgotten that too. Reading through that PEP, seems like we can use
> the Python sysconfig variable 'INCLUDEPY' to determined the include
> install location; it works with both 2.7 and 3.4 quite nicely:
> {{{
> pythonX.Y -c "import sysconfig;
> print(sysconfig.get_config_var('INCLUDEPY'))"
> }}}

Yes. It doesn't work with 2.6, but that's not really a problem. Remember
though that we need to be able to produce a value for ${python.include}
when evaluating portfiles before any dependencies, including pythonX.Y,
have been installed.

> It looks like the culprit is dbus-python (owned by mcalhoun and quite
> out of date; port version 1.2.0 and current stable release of 1.8.18);
> in the configure.args it adds:
> {{{
>             --includedir=${python_prefix}/include/python${python_branch}
>              \
> }}}
> without the 'm'. Thus, because of the code I added to the Python
> PortGroup, this directory will be reused as the place to install
> includes for python3.4 for ports that use that setting (not all do).
> Hence why sip.h was installed there, since it was installed -after-
> dbus-python34. - MLD

OK, so that should be fixed and then some rev bumps will be needed.

- Josh


More information about the macports-dev mailing list