From ca7d1729b160da2f07be5369349dc00b1b8313ef Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 24 Mar 2021 15:30:33 +0100 Subject: [PATCH] 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 --- src/tools/python.jam | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/python.jam b/src/tools/python.jam index a2abce3ea..00706932d 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -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) ;