Don't assume you know which sJPK egments will be created.
[hooke.git] / setup.py
index 4e41355bfa62c70d5a88d5b874b356f6d3c7e84b..4672ba516b454bac2712aeefb0e98eac59d39b29 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,20 @@
-# Copyright
+# Copyright (C) 2010 W. Trevor King <wking@drexel.edu>
+#
+# This file is part of Hooke.
+#
+# Hooke is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# Hooke is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
+# Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with Hooke.  If not, see
+# <http://www.gnu.org/licenses/>.
 
 """Hooke: tools for analyzing force spectroscopy data.
 
@@ -24,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):]
@@ -47,7 +63,7 @@ setup(name="Hooke",
       description = doclines[0],
       long_description = "\n".join(doclines[2:]),
       classifiers = filter(None, classifiers.split("\n")),
-      scripts = ['bin/hooke'],
+      scripts = ['bin/hg.py'],
       packages = packages,
       provides = packages,
       )