2018-01-28 01:21:11 +01:00
|
|
|
From: Egbert Eich <eich@suse.com>
|
|
|
|
Date: Sat Jan 27 23:50:57 2018 +0100
|
|
|
|
Subject: Fix Python package installation: use --root
|
|
|
|
Patch-mainline: Not yet
|
2018-01-29 07:15:55 +01:00
|
|
|
Git-commit: f8aa6871f9ac452134c4077d47adef28d5e8a0a1
|
2018-01-28 01:21:11 +01:00
|
|
|
References:
|
|
|
|
|
|
|
|
Python allows the use of an alternative installation directory
|
|
|
|
using the --root option. Do not code the root directory into
|
|
|
|
the --prefix and --exec-prefix paths.
|
|
|
|
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
|
|
---
|
2018-01-29 07:15:55 +01:00
|
|
|
src/extensions/python/Makefile.am | 12 +++++-------
|
|
|
|
1 file changed, 5 insertions(+), 7 deletions(-)
|
2018-01-28 01:21:11 +01:00
|
|
|
diff --git a/src/extensions/python/Makefile.am b/src/extensions/python/Makefile.am
|
2018-01-29 07:15:55 +01:00
|
|
|
index 5d62ae6..86ba50d 100644
|
2018-01-28 01:21:11 +01:00
|
|
|
--- a/src/extensions/python/Makefile.am
|
|
|
|
+++ b/src/extensions/python/Makefile.am
|
2018-01-29 07:15:55 +01:00
|
|
|
@@ -7,23 +7,21 @@
|
2018-01-28 01:21:11 +01:00
|
|
|
# Use Python's distutils to make/install everything into the right place.
|
|
|
|
|
2018-01-29 07:15:55 +01:00
|
|
|
# DESTDIR is usually set during make install time, not configure or
|
2018-01-28 01:21:11 +01:00
|
|
|
-# make time, so we work around it with the --with-extension-destdir
|
|
|
|
-# autoconf option.
|
|
|
|
-
|
|
|
|
-PYTHON_DESTDIR = @EXTENSION_DESTDIR@
|
2018-01-29 07:15:55 +01:00
|
|
|
+# make time, so we work around it with a shell command.
|
|
|
|
+PYDEST=$$(test -z "${DESTDIR}" || echo "--root=${DESTDIR}")
|
|
|
|
|
2018-01-28 01:21:11 +01:00
|
|
|
if WITH_PYTHON_EXTENSIONS
|
|
|
|
all: genderssetup.py libgendersmodule.c genders.py
|
|
|
|
$(PYTHON) genderssetup.py build
|
|
|
|
|
|
|
|
install:
|
|
|
|
- $(PYTHON) genderssetup.py install --prefix=$(PYTHON_DESTDIR)/$(prefix) --exec-prefix=$(PYTHON_DESTDIR)/$(exec_prefix)
|
2018-01-29 07:15:55 +01:00
|
|
|
+ $(PYTHON) genderssetup.py install --prefix=$(prefix) --exec-prefix=$(exec_prefix) $(PYDEST)
|
2018-01-28 01:21:11 +01:00
|
|
|
|
|
|
|
pure_install:
|
|
|
|
- $(PYTHON) genderssetup.py install --prefix=$(PYTHON_DESTDIR)/$(prefix) --exec-prefix=$(PYTHON_DESTDIR)/$(exec_prefix)
|
2018-01-29 07:15:55 +01:00
|
|
|
+ $(PYTHON) genderssetup.py install --prefix=$(prefix) --exec-prefix=$(exec_prefix) $(PYDEST)
|
2018-01-28 01:21:11 +01:00
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
- $(PYTHON) genderssetup.py install --prefix=$(PYTHON_DESTDIR)/$(prefix) --exec-prefix=$(PYTHON_DESTDIR)/$(exec_prefix)
|
2018-01-29 07:15:55 +01:00
|
|
|
+ $(PYTHON) genderssetup.py install --prefix=$(prefix) --exec-prefix=$(exec_prefix) $(PYDEST)
|
2018-01-28 01:21:11 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|