From 297b3c39a5bc1f71a76b05e77999c7f1902f97bc Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Mon, 25 Jul 2011 21:40:40 +0100 Subject: [PATCH] LP 799718: Pass the DESTDIR variable to setup.py This allows python modules to be built when creating packages. Per comment from Dan Scott on the LP bug: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266 says "Multiple successive slashes are considered to be the same as one slash." so in theory "--root=$(DESTDIR)/" should be just as safe as "--root=$(DESTDIR)///", but why not go the distance and use 3 slashes to avoid any possibility of some oddball POSIX implementation that treats 2 slashes differently for some reason? Signed-off-by: Ben Webb Signed-off-by: Dan Scott --- src/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/Makefile.am b/src/python/Makefile.am index 80c4904..4fbcd6d 100644 --- a/src/python/Makefile.am +++ b/src/python/Makefile.am @@ -11,7 +11,7 @@ all-local: # ------------------------------------------------------------------------------ install-data-local: @echo $@ - python @srcdir@/setup.py install + python @srcdir@/setup.py install --root $(DESTDIR)/// distclean-local: rm -f @builddir@/OpenSRF.egg-info/PKG-INFO -- 2.11.0