diff --git a/bin/tahoe b/bin/tahoe index e18c8a81f..20f487994 100644 --- a/bin/tahoe +++ b/bin/tahoe @@ -30,6 +30,13 @@ if len(where) >= 2 and where[-2] == "bin": if fn.endswith(".egg"): support_eggs.append(os.path.join(supportdir, fn)) + # We also need to include .egg's in the base dir, because if there is an + # .egg there then "make build-deps" will take that as satisfying its + # requirements. + for fn in os.listdir(base): + if fn.endswith(".egg"): + support_eggs.append(os.path.abspath(os.path.join(base, fn))) + sys.path.extend(support_eggs) # also update PYTHONPATH so that child processes (like twistd) will diff --git a/misc/find-dep-eggs.py b/misc/find-dep-eggs.py index f0caf5678..97bfc3d8b 100644 --- a/misc/find-dep-eggs.py +++ b/misc/find-dep-eggs.py @@ -14,10 +14,4 @@ if os.path.exists(support_lib): if fn.endswith(".egg"): path.append(os.path.abspath(os.path.join(support_lib, fn))) -# We also need to include .egg's in the CWD, because those are placed there by -# libraries that we've installed if *they* require them. -for fn in os.listdir("."): - if fn.endswith(".egg"): - path.append(os.path.abspath(os.path.join(os.getcwd(), fn))) - print os.pathsep.join(path)