From 97b97340bea0f922bcd078e4bc2271e2a48e7902 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Mon, 4 Apr 2016 16:17:54 -0700 Subject: [PATCH] python: Pass prefix/sbindir from autoconf to distutils. Signed-off-by: Robin H. Johnson --- src/ceph-detect-init/Makefile.am | 2 +- src/ceph-disk/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ceph-detect-init/Makefile.am b/src/ceph-detect-init/Makefile.am index 8ddcb1eaeae0..a2d1879c28ed 100644 --- a/src/ceph-detect-init/Makefile.am +++ b/src/ceph-detect-init/Makefile.am @@ -69,7 +69,7 @@ ceph-detect-init-install-data: if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ options=--install-layout=deb ; \ else \ - options=--prefix=/usr ; \ + options=--prefix=$(prefix) ; \ fi ; \ root="--root=$(DESTDIR)" ; \ fi ; \ diff --git a/src/ceph-disk/Makefile.am b/src/ceph-disk/Makefile.am index 900630382a13..0cf1d6bad022 100644 --- a/src/ceph-disk/Makefile.am +++ b/src/ceph-disk/Makefile.am @@ -45,9 +45,9 @@ ceph-disk-install-data: if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ options=--install-layout=deb ; \ else \ - options=--prefix=/usr ; \ + options=--prefix=$(prefix) ; \ fi ; \ - root="--root=$(DESTDIR) --install-script=/usr/sbin" ; \ + root="--root=$(DESTDIR) --install-script=$(sbindir)" ; \ fi ; \ python setup.py install $$root $$options -- 2.47.3