From a81fb3f45700c682dfb68cab6bb851bd57df735b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Domen=20Ko=C5=BEar?= <domen@dev.si>
Date: Thu, 23 Aug 2012 21:06:33 +0200
Subject: [PATCH] fix sqlite issue

---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 99523b8..45b2d33 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,9 @@ BUILD_DIRS = $(PYTHON_PATH) bin build develop-eggs eggs parts
 all: build
 
 $(PYTHON_PATH):
-	sudo apt-get install zlib1g-dev zlib-bin
 	@echo "Installing Python"
+	# see http://mail.python.org/pipermail/python-bugs-list/2007-April/038211.html
+	sudo mv /usr/include/sqlite3.h /tmp/
 	mkdir -p $(PYTHON_PATH)
 	cd $(PYTHON_PATH) && \
 	curl --progress-bar $(PYTHON_DOWNLOAD) | tar -zx
@@ -40,7 +41,7 @@ ifeq ($(PYTHON_VER),2.5)
 	sed -i '1ifrom __future__ import with_statement' "$(PYTHON_PATH)/$(PYTHON_ARCHIVE)/setup.py"
 endif
 	cd $(PYTHON_PATH)/$(PYTHON_ARCHIVE) && \
-	./configure --prefix $(PYTHON_PATH) --without-sqlite --with-zlib=/usr/include >/dev/null 2>&1 && \
+	./configure --prefix $(PYTHON_PATH) --without-sqlite >/dev/null 2>&1 && \
 	make  && \
 	make install >/dev/null 2>&1
 	@echo "Finished installing Python"
-- 
2.30.9