Restrict the setup.py package search to the hooke/ directory.
authorW. Trevor King <wking@drexel.edu>
Wed, 2 Jun 2010 06:10:29 +0000 (02:10 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 2 Jun 2010 06:10:29 +0000 (02:10 -0400)
Otherwise test/ and others may also be bundled, which will clutter
your installation with useless cruft.

setup.py

index c9fa2e75a72c3f607d9e0ae516a52af0d835f222..6e1d3d0079016582a7a65bc051b131428e730a93 100644 (file)
--- 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):]