From d5a0978e67c37981bbad88c0dc6afa0c999ab7ea Mon Sep 17 00:00:00 2001 From: YoongHM Date: Mon, 19 Aug 2019 23:49:32 +0800 Subject: [PATCH] Properly detect python header files --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index ca0b08d58083..fe45cf2fc38b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -283,7 +283,7 @@ if test "x$flag_no_python" = x; then if test "x$PYTHON_ROOT" = x; then $ECHO -n "Detecting Python root... " - PYTHON_ROOT=`$PYTHON -c "import sys; print(sys.prefix)"` + PYTHON_ROOT=`$PYTHON -c "from sysconfig import get_paths as gp; print(gp()['include'])"` echo $PYTHON_ROOT fi fi