From c1d830fc03046778579fb735b8049e5e6d88a331 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 2 Jun 2010 02:10:29 -0400 Subject: [PATCH] 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. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):] -- 2.26.2