diff --git a/Makefile b/Makefile
index 5c0ca54630ad4ad5cb81d85baef633c156071f88..35f78d361ffd07eb250fea4637e37bb64bed736d 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 74fb929f42cb012df3e40152a8e669e286d728a9..369760bc32cc1757049b475185bb18f7b54f8b55 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 c9cbb311b2e67fa8a36775af1f0f9b6d7c622b82..3b69799d66cd901e1f588a2e11acb36cd3bd46cf 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)