From 53b60546e43caecdfb0d9e1b91cd5f309d08cf52 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 3 Nov 2015 16:39:40 +0100 Subject: Package ipapython, ipalib, ipaplatform, ipatests for Python 3 Running make with PYTHON=/usr/bin/python3 will build/install the bits for Python 3. Executable scripts in ipatests have symlinks Python version suffixes as per Fedora guidelines. Suffix-less names point to the Python 2 versions. Reviewed-By: Jan Cholasta --- ipapython/ipap11helper/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ipapython/ipap11helper') diff --git a/ipapython/ipap11helper/Makefile b/ipapython/ipap11helper/Makefile index 88f17f705..f66edb82e 100644 --- a/ipapython/ipap11helper/Makefile +++ b/ipapython/ipap11helper/Makefile @@ -1,15 +1,14 @@ -PYTHONLIBDIR ?= $(shell python2 -c "from distutils.sysconfig import *; print get_python_lib()") -PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa -CONFIGDIR ?= $(DESTDIR)/etc/ipa +PYTHON ?= /usr/bin/python2 +PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib())") all: - python2 setup.py build + $(PYTHON) setup.py build install: if [ "$(DESTDIR)" = "" ]; then \ - python2 setup.py install; \ + $(PYTHON) setup.py install; \ else \ - python2 setup.py install --root $(DESTDIR); \ + $(PYTHON) setup.py install --root $(DESTDIR); \ fi clean: -- cgit