view components/git/patches/python_Makefile.patch @ 468:1384245f6865

7046977 git delivers python bits to site-packages
author Rich Burridge <rich.burridge@oracle.com>
date Thu, 17 Nov 2011 10:39:22 -0800
parents
children
line wrap: on
line source

--- git-1.7.3.2/git_remote_helpers/Makefile.orig	Tue Nov 15 05:25:37 2011
+++ git-1.7.3.2/git_remote_helpers/Makefile	Tue Nov 15 06:35:06 2011
@@ -23,13 +23,15 @@
 
 PYLIBDIR=$(shell $(PYTHON_PATH) -c \
 	 "import sys; \
-	 print 'lib/python%i.%i/site-packages' % sys.version_info[:2]")
+	 print 'lib/python%i.%i/vendor-packages' % sys.version_info[:2]")
 
 all: $(pysetupfile)
 	$(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build
 
 install: $(pysetupfile)
-	$(PYTHON_PATH) $(pysetupfile) install --prefix $(DESTDIR_SQ)$(prefix)
+	$(PYTHON_PATH) $(pysetupfile) install \
+	--install-lib=$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR) \
+	--prefix $(DESTDIR_SQ)$(prefix)
 
 instlibdir: $(pysetupfile)
 	@echo "$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR)"