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 <jcholast@redhat.com>
This commit is contained in:
Petr Viktorin authored and Jan Cholasta committed 2015-12-17 10:52:57 +01:00
1 parent 58331208a5
commit 53b60546e4
10 files changed
+289 -32

No files matched your search

+5 -6
View File
@@ -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: