Restrict the setup.py package search to the hooke/ directory.
[hooke.git] / 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):]