[MacPorts] #48273: dbus-python: fix include directory for Python34 abiflags

MacPorts noreply at macports.org
Mon Jul 6 13:22:08 PDT 2015


#48273: dbus-python: fix include directory for Python34 abiflags
-------------------------+---------------------------
 Reporter:  michaelld@…  |      Owner:  mcalhoun@…
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.3.3
 Keywords:               |       Port:  dbus-python34
-------------------------+---------------------------
 Python34 is installed by default with pymalloc enabled, which results in
 -some- of its libraries and directories names to have 'm' appended to
 them. See https://www.python.org/dev/peps/pep-3149/#proposal for more info
 on that flag. Python3.4 provides the config binary flags --abiflags to
 show this value, which we can use directly in the Portfile, in pre-
 configure somehow (just in case Python3.4 does not yet exist when the
 Portfile is initially executed). In this way, we can specify the proper
 include directory. Python27 does not provide an abiflags variable, but
 also does not seem to use the 'm' (or any other) appended to any of its
 names either. I'm not sure how to patch this to make it work; directly
 changing the variable shows that it does work though. The line in need of
 change is:
 {{{
             --includedir=${python_prefix}/include/python${python_branch}
 \
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/48273>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list