From 419c3cd570a1d7d59acc9bdf6b71f8c02a5ded0f 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 145a1dd5..0dd234c4 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 rm -f -- '{}' +
+	find support -name easy-install.pth -execdir sed -i 's|^.*/src$$||' '{}' +
 	touch .built
 
 # create component pkg
-- 
2.45.2