diff options
| author | Petr Spacek <pspacek@redhat.com> | 2016-10-25 14:01:31 +0200 |
|---|---|---|
| committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-11-09 13:08:32 +0100 |
| commit | 8de11b091fc705f235b1304fb101c27a82dcda6f (patch) | |
| tree | 27a1522460fdc611fb850b7cb8f19736a26de5d9 /ipapython | |
| parent | 81da45ffb13d126c9b56a2022d88ba8bed2ee18c (diff) | |
| download | freeipa-8de11b091fc705f235b1304fb101c27a82dcda6f.tar.gz freeipa-8de11b091fc705f235b1304fb101c27a82dcda6f.tar.xz freeipa-8de11b091fc705f235b1304fb101c27a82dcda6f.zip | |
Build: Makefiles for Python packages
This version builds only one version of Python packages. If you want to
build for Python 2 & 3 call configure twice using different --with-python
or specify PYTHON variable when calling make.
dist-hook is using SOURCES.txt file from egg-info.
According to Petr Viktorin this should be enough for our purposes
and avoids need to create plugins for setuptools.
Currently VPATH builds do not work for various reasons.
This should be fixed later on.
Most credit goes to these guys:
Christian Heimes <cheimes@redhat.com>
Petr Viktorin <pviktori@redhat.com>
Kevin Brown <kevin@kevin-brown.com>
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/Makefile | 38 | ||||
| -rw-r--r-- | ipapython/Makefile.am | 1 |
2 files changed, 1 insertions, 38 deletions
diff --git a/ipapython/Makefile b/ipapython/Makefile deleted file mode 100644 index 7ecc5f565..000000000 --- a/ipapython/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -PYTHON ?= /usr/bin/python2 -PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib())") - -all: - @for subdir in $(SUBDIRS); do \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ - done - -check: - -.PHONY: install -install: - if [ "$(DESTDIR)" = "" ]; then \ - $(PYTHON) setup.py install; \ - else \ - $(PYTHON) setup.py install --root $(DESTDIR); \ - fi - @for subdir in $(SUBDIRS); do \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ - done - -clean: - rm -rf *~ *.pyc __pycache__/ - @for subdir in $(SUBDIRS); do \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ - done - -distclean: clean - rm -f ipa-python.spec version.py - @for subdir in $(SUBDIRS); do \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ - done - -maintainer-clean: distclean - rm -rf build - @for subdir in $(SUBDIRS); do \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ - done diff --git a/ipapython/Makefile.am b/ipapython/Makefile.am new file mode 100644 index 000000000..8be72b25d --- /dev/null +++ b/ipapython/Makefile.am @@ -0,0 +1 @@ +include $(top_srcdir)/Makefile.python.am |
