]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: remove the misc/hatch-eggs.py script, which we no longer use since [1937]
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 23 Apr 2008 20:41:56 +0000 (13:41 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 23 Apr 2008 20:41:56 +0000 (13:41 -0700)
misc/hatch-eggs.py [deleted file]

diff --git a/misc/hatch-eggs.py b/misc/hatch-eggs.py
deleted file mode 100644 (file)
index 6793328..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#! /usr/bin/python
-
-import os.path
-import sys
-import zipfile
-
-path = []
-if sys.platform == 'win32':
-    support_lib = "support/Lib/site-packages"
-else:
-    pyver = "python%d.%d" % (sys.version_info[:2])
-    support_lib = "support/lib/%s/site-packages" % pyver
-
-if os.path.exists(support_lib):
-    for fn in os.listdir(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 if there is an .egg there
-# then "make build-deps" will take that as satisfying its requirements.
-for fn in os.listdir("."):
-    if fn.endswith(".egg"):
-        path.append(os.path.abspath(os.path.join(os.getcwd(), fn)))
-
-for eggpath in path:
-    if os.path.isfile(eggpath):
-        bak = eggpath + '.bak'
-        os.rename(eggpath, bak)
-        os.mkdir(eggpath)
-        zf = zipfile.ZipFile(bak, 'r')
-        print bak
-        for name in zf.namelist():
-            dirname = os.path.join(eggpath, os.path.dirname(name))
-            if not os.path.isdir(dirname):
-                print 'creating', dirname
-                os.makedirs(dirname)
-            print name
-            f = file(os.path.join(eggpath, name), 'wb')
-            f.write(zf.read(name))
-            f.close()
-