Index: Makefile.pre.in =================================================================== --- Makefile.pre.in (revision 68578) +++ Makefile.pre.in (working copy) @@ -996,11 +996,12 @@ # Install the dynamically loadable modules # This goes into $(exec_prefix) sharedinstall: + INSTROOT=$(DESTDIR); test -z "$$INSTROOT" && INSTROOT=/; \ $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \ --prefix=$(prefix) \ --install-scripts=$(BINDIR) \ --install-platlib=$(DESTSHARED) \ - --root=/$(DESTDIR) + --root=$$INSTROOT # Here are a couple of targets for MacOSX again, to install a full # framework-based Python. frameworkinstall installs everything, the @@ -1075,11 +1076,12 @@ # This installs a few of the useful scripts in Tools/scripts scriptsinstall: + INSTROOT=$(DESTDIR); test -z "$$INSTROOT" && INSTROOT=/; \ SRCDIR=$(srcdir) $(RUNSHARED) \ ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \ --prefix=$(prefix) \ --install-scripts=$(BINDIR) \ - --root=/$(DESTDIR) + --root=$$INSTROOT # Build the toplevel Makefile Makefile.pre: Makefile.pre.in config.status