3 # MONKEYPATCH: Stop egg_info from stupidly traversing the entire
4 # development directory.
5 import setuptools.command.egg_info
7 class FileList(setuptools.command.egg_info.FileList):
8 def findall(self, dir=os.curdir):
9 """Find all files under 'dir' and return the list of full filenames
12 from stat import ST_MODE, S_ISREG, S_ISDIR, S_ISLNK
22 if dir in ("tests", "srv", ".git"):
25 names = os.listdir(dir)
28 if dir != os.curdir: # avoid the dreaded "./" syndrome
29 fullname = os.path.join(dir, name)
33 # Avoid excess stat calls -- just one will do, thank you!
34 stat = os.stat(fullname)
38 elif S_ISDIR(mode) and not S_ISLNK(mode):
41 setuptools.command.egg_info.FileList = FileList
47 author = 'The Wizard Team',
48 author_email = 'scripts-team@mit.edu',
49 description = ('A next-generation autoinstall management system'),
51 url = 'http://scripts.mit.edu/wizard',
52 packages = setuptools.find_packages(exclude=["tests", "plugins"]),
53 install_requires = ['decorator'], # versions?
54 keywords = "autoinstall webapp deploy",