[PATCH] Makefile: add install-mac for framework-based Python installations (issue1412)

Brodie Rao dackze at gmail.com
Sun Jan 4 18:16:54 CST 2009


# HG changeset patch
# User Brodie Rao <me+hg at dackz.net>
# Date 1231029019 18000
# Node ID 08023510ff113657ef96eb0ef32b86f661062899
# Parent  49355875c8054259ffcf4bc913a8d97ff89330b1
Makefile: add install-mac for framework-based Python installations (issue1412)

Apple's distributions and python.org's binary distributions of Python are
installed as self-contained frameworks. In this case site-packages doesn't
live under /usr/local, and --prefix is already properly configured by the
Python installation.

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,12 @@ install-home-bin: build
 install-home-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
 
+# For framework-based Python installations, where --prefix is inappropriate
+install-mac: install-mac-bin install-doc
+
+install-mac-bin: build
+	$(PYTHON) setup.py install --force
+
 MANIFEST-doc:
 	$(MAKE) -C doc MANIFEST
 


More information about the Mercurial-devel mailing list