Patchwork setup: specify --prefix="" for install-home-bin to avoid badness with defaults

login
register
mail settings
Submitter Augie Fackler
Date Feb. 28, 2014, 1:09 a.m.
Message ID <28788ee749ecfeb449b8.1393549777@augie-macbookair>
Download mbox | patch
Permalink /patch/3802/
State Accepted
Commit 1bc68ff4e0a26bd079e7d4f4025f4b91cc85cc11
Headers show

Comments

Augie Fackler - Feb. 28, 2014, 1:09 a.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1391411386 18000
#      Mon Feb 03 02:09:46 2014 -0500
# Node ID 28788ee749ecfeb449b87de3c8f9d9ee0fcb4e91
# Parent  710c2755e66a1322d78911a18362636b3b0ead2c
setup: specify --prefix="" for install-home-bin to avoid badness with defaults

Sometimes (I'm not sure when) setup.py gets a default value for
--prefix, which breaks --home. This fixes that for me.
Matt Mackall - March 1, 2014, 12:15 a.m.
On Thu, 2014-02-27 at 20:09 -0500, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf@durin42.com>
> # Date 1391411386 18000
> #      Mon Feb 03 02:09:46 2014 -0500
> # Node ID 28788ee749ecfeb449b87de3c8f9d9ee0fcb4e91
> # Parent  710c2755e66a1322d78911a18362636b3b0ead2c
> setup: specify --prefix="" for install-home-bin to avoid badness with defaults

Queued for default, thanks.

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ 
 install-home: install-home-bin install-home-doc
 
 install-home-bin: build
-	$(PYTHON) setup.py $(PURE) install --home="$(HOME)" --force
+	$(PYTHON) setup.py $(PURE) install --home="$(HOME)" --prefix="" --force
 
 install-home-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install