From 5bf7293a2c625d8d359d3e770635e5428eee2381 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz>
Date: Tue, 4 Aug 2015 14:31:54 +0200
Subject: [PATCH] build: do not require Python libraries now

---
 Makefile      | 2 +-
 platform.mk   | 8 --------
 tests/unit.mk | 1 -
 3 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index 5c0ca5463..35f78d361 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ $(eval $(call find_lib,cmocka))
 $(eval $(call find_bin,doxygen))
 $(eval $(call find_bin,sphinx-build))
 $(eval $(call find_bin,gccgo))
-$(eval $(call find_python))
+$(eval $(call find_bin,python))
 $(eval $(call find_lib,libmemcached,1.0))
 $(eval $(call find_lib,hiredis))
 $(eval $(call find_lib,socket_wrapper))
diff --git a/platform.mk b/platform.mk
index 74fb929f4..369760bc3 100644
--- a/platform.mk
+++ b/platform.mk
@@ -117,11 +117,3 @@ define find_bin
 		$(1) := $$($(1)_BIN)
 	endif
 endef
-
-# Find Python 
-define find_python
-	python_CFLAGS := $(shell $(PYTHON) -c "from distutils import sysconfig as c;print('-I%s' % c.get_python_inc())")
-	python_LIBS := $(shell $(PYTHON) -c "from distutils import sysconfig as c;print('-L%s -lpython%s' % (c.get_config_var('LIBDIR'), c.get_config_var('VERSION')))")
-	$(call have_lib,python)
-endef
-
diff --git a/tests/unit.mk b/tests/unit.mk
index c9cbb311b..3b69799d6 100644
--- a/tests/unit.mk
+++ b/tests/unit.mk
@@ -26,7 +26,6 @@ tests_LIBS :=  $(libkres_TARGET) $(libkres_LIBS) $(cmocka_LIBS)
 
 # Make test binaries
 define make_test
-$(1)_CFLAGS := -Wno-deprecated-declarations
 $(1)_SOURCES := tests/$(1).c
 $(1)_LIBS := $(tests_LIBS)
 $(1)_DEPEND := $(tests_DEPEND)
-- 
GitLab