From b71ac2e9e1b34606e39d42979c8f9196a59b36dc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Oct 2011 02:55:03 +0200 Subject: [PATCH] Break if python version could not be detected. --- Makeconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makeconfig b/Makeconfig index 6f4be9f93..71e5950e1 100644 --- a/Makeconfig +++ b/Makeconfig @@ -23,6 +23,10 @@ endif # Get the version and configuration of the python interpreter. PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])") +ifeq "$(PYTHON_VERSION)" "" + $(error Could not determine the version of the python interpreter.) +endif + PYTHON_CC = $(CC) -pthread -fPIC PYTHON_CFLAGS = $(shell python-config --cflags) PYTHON_MODULES = pakfire pakfire/packages pakfire/repository -- 2.39.5