From: W. Trevor King Date: Wed, 2 Jun 2010 06:10:29 +0000 (-0400) Subject: Restrict the setup.py package search to the hooke/ directory. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1d830fc03046778579fb735b8049e5e6d88a331;p=hooke.git Restrict the setup.py package search to the hooke/ directory. Otherwise test/ and others may also be bundled, which will clutter your installation with useless cruft. --- diff --git a/setup.py b/setup.py index c9fa2e7..6e1d3d0 100644 --- a/setup.py +++ b/setup.py @@ -40,10 +40,10 @@ Topic :: Scientific/Engineering doclines = __doc__.split("\n") -def find_packages(): +def find_packages(root='hooke'): packages = [] prefix = '.'+os.path.sep - for dirpath,dirnames,filenames in walk('.'): + for dirpath,dirnames,filenames in walk(root): if '__init__.py' in filenames: if dirpath.startswith(prefix): dirpath = dirpath[len(prefix):]