Merge pull request #8436 from dreamhost/wip-python-prefix

python: Pass prefix/sbindir from autoconf to distutils.

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-06-11 18:07:54 +08:00 committed by GitHub
commit fb2667f3e1
2 changed files with 3 additions and 3 deletions

View File

@ -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 ; \

View File

@ -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