From: Michael Tremer Date: Sat, 4 Aug 2012 10:27:44 +0000 (+0000) Subject: Fix installation. X-Git-Tag: 0.0.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b01622486e48f563b63e4a129179ac7b79caf519;p=telemetry.git Fix installation. --- diff --git a/Makefile b/Makefile index c4ae700..2e1b018 100644 --- 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: