summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/host-system-python3.in3
-rw-r--r--rules/host-system-python3.make6
2 files changed, 9 insertions, 0 deletions
diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
index d3600491f..e0ab5e857 100644
--- a/rules/host-system-python3.in
+++ b/rules/host-system-python3.in
@@ -5,6 +5,9 @@ config HOST_SYSTEM_PYTHON3
if HOST_SYSTEM_PYTHON3
+config HOST_SYSTEM_PYTHON3_DEV
+ bool
+
config HOST_SYSTEM_PYTHON3_MAKO
bool
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index aa879ad4d..1fcb927de 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -26,6 +26,12 @@ $(STATEDIR)/host-system-python3.prepare:
@$(SYSTEMPYTHON3) -V >/dev/null 2>&1 || \
ptxd_bailout "'python3' not found! Please install.";
@echo
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_DEV
+ @echo "Checking for Python development files ..."
+ @$(SYSTEMPYTHON3)-config --includes &>/dev/null || \
+ ptxd_bailout "Python development files module not found! \
+ Please install python-dev (debian)";
+endif
ifdef PTXCONF_HOST_SYSTEM_PYTHON3_MAKO
@echo "Checking for Python Mako ..."
@$(SYSTEMPYTHON3) -c 'import mako' 2>/dev/null || \