2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Also check for m-suffixed python include folder (#4)

* src/tools/python.jam
    (compute-default-paths): When the python include folder without any
    suffix does not exist, but one with a m-suffix does, use the latter
This commit is contained in:
Alexander Grund
2021-03-24 15:30:33 +01:00
committed by GitHub
parent dec7030d3f
commit ca7d1729b1

View File

@@ -547,7 +547,13 @@ local rule compute-default-paths ( target-os : version ? : prefix ? :
}
else
{
includes ?= $(prefix)/include/python$(version) ;
local default-include-path = $(prefix)/include/python$(version) ;
if ! [ path.exists $(default-include-path) ] && [ path.exists $(default-include-path)m ]
{
default-include-path = $(default-include-path)m ;
}
includes ?= $(default-include-path) ;
local lib = $(exec-prefix)/lib ;
libraries ?= $(lib)/python$(version)/config $(lib) ;