From e3d1f448541ac08a4ff2ddca9e3bd563af570661 Mon Sep 17 00:00:00 2001
From: Daira Hopwood <daira@jacaranda.org>
Date: Tue, 7 Oct 2014 01:21:51 +0100
Subject: [PATCH] Workaround for references to 'src' directory from .egg-link
 and .pth files.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index c5b113fe..aa7cce04 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,8 @@ build:
 .PHONY: build-osx-pkg
 build-osx-pkg:
 	$(PYTHON) setup.py build
+	find support -name allmydata-tahoe.egg-link -execdir sh -c "echo >> {}; echo /Applications/tahoe.app/src >> {}" \;
+	find support -name easy-install.pth -execdir sed -i.bak 's|^.*/src$$|../../../../src|' '{}' \;
 	touch .built
 
 # create component pkg
-- 
2.45.2