From 0855fc4784cb2c2f19412ca897e8a3fdbeec933f Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 18 May 2006 11:02:29 +0000 Subject: [PATCH] Attempt the fix python on OSX. [SVN r34000] --- v2/tools/python.jam | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/v2/tools/python.jam b/v2/tools/python.jam index c215599a9..e6d016a8d 100644 --- a/v2/tools/python.jam +++ b/v2/tools/python.jam @@ -223,7 +223,12 @@ rule init-mac ( version : root ? : includes ? : libraries ? ) flags python.capture-output PYTHON : $(interpreter) ; - PYTHON_FRAMEWORK ?= /System/Library/Frameworks/Python.framework ; + PYTHON_FRAMEWORK ?= $(root) ; + while $(PYTHON_FRAMEWORK:D=) && $(PYTHON_FRAMEWORK:D=) != Python.framework + { + PYTHON_FRAMEWORK = $(PYTHON_FRAMEWORK:D) ; + } + PYTHON_FRAMEWORK = $(PYTHON_FRAMEWORK:D)/Python ; alias python_for_extensions :