From d2bd70a52af6951fe158957eb072933fe3a9ad44 Mon Sep 17 00:00:00 2001 From: "Paul m. p. P" Date: Sat, 27 Feb 2021 10:50:30 +0100 Subject: [PATCH] BLD match host and target in case of multiple pythons (#1292) --- Makefile.envs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.envs b/Makefile.envs index b6f2ebc91..17b76ef28 100644 --- a/Makefile.envs +++ b/Makefile.envs @@ -9,8 +9,8 @@ SHELL := /bin/bash export PYVERSION=3.8.2 export PYMINOR=$(basename $(PYVERSION)) -export HOSTPYTHONROOT=$(shell python -c "import sys; print(sys.prefix)") -export HOSTPYTHON=$(HOSTPYTHONROOT)/bin/python3 +export HOSTPYTHONROOT=$(shell python3.8 -c "import sys; print(sys.prefix)") +export HOSTPYTHON=$(HOSTPYTHONROOT)/bin/python3.8 export TARGETPYTHONROOT=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION) export PYTHONINCLUDE=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)/include/python$(PYMINOR)