diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-11-03 16:39:40 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-12-17 10:52:57 +0100 |
commit | 53b60546e43caecdfb0d9e1b91cd5f309d08cf52 (patch) | |
tree | 91f22d1e2d2df978eb309b067ca63c466d9b8fc7 /ipalib/Makefile | |
parent | 58331208a5ded367e521d42d99de2835f329fab7 (diff) | |
download | freeipa-53b60546e43caecdfb0d9e1b91cd5f309d08cf52.tar.gz freeipa-53b60546e43caecdfb0d9e1b91cd5f309d08cf52.tar.xz freeipa-53b60546e43caecdfb0d9e1b91cd5f309d08cf52.zip |
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>
Diffstat (limited to 'ipalib/Makefile')
-rw-r--r-- | ipalib/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ipalib/Makefile b/ipalib/Makefile new file mode 100644 index 000000000..5bd84fa4a --- /dev/null +++ b/ipalib/Makefile @@ -0,0 +1,25 @@ +PYTHON ?= /usr/bin/python2 +PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib())") + +all: + # Pure Python; no need to build + true + +check: + +.PHONY: install +install: + if [ "$(DESTDIR)" = "" ]; then \ + $(PYTHON) setup.py install; \ + else \ + $(PYTHON) setup.py install --root $(DESTDIR); \ + fi + +clean: + rm -f *~ *.pyc __pycache__/ + +distclean: clean + rm -f setup.py + +maintainer-clean: distclean + rm -rf build |