]> git.ipfire.org Git - collecty.git/commitdiff
Fix installation.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Aug 2012 10:27:44 +0000 (10:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Aug 2012 10:27:44 +0000 (10:27 +0000)
Makefile

index c4ae700977c90365574966afb31c78f82cb0d171..2e1b01813416ae9fb340582d90f35c269ad01a49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,8 @@ NAME = collecty
 VERSION = 0.0.1
 
 DESTDIR =
-PYTHON_VER := $(shell python --version 2>&1 | awk '{ print $$NF }')
-PYTHON_DIR = $(DESTDIR)/usr/lib/python$(PYTHON_VER)/site-packages/$(NAME)/
+PYTHON_VER := $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
+PYTHON_DIR = $(DESTDIR)/usr/lib/python$(PYTHON_VER)/site-packages/
 
 all: