--- /dev/null
+"""Hooke: tools for analyzing force spectroscopy data.
+
+Mercurial repository:
+http://www.physics.drexel.edu/~wking/code/hg/hooke/
+"""
+
+from distutils.core import setup
+from os import walk
+import os.path
+
+from hooke import version
+
+
+classifiers = """\
+Development Status :: 3 - Alpha
+Intended Audience :: Science/Research
+Operating System :: OS Independent
+License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
+Programming Language :: Python
+Topic :: Scientific/Engineering
+"""
+
+doclines = __doc__.split("\n")
+
+def find_packages():
+ packages = []
+ prefix = '.'+os.path.sep
+ for dirpath,dirnames,filenames in walk('.'):
+ if '__init__.py' in filenames:
+ if dirpath.startswith(prefix):
+ dirpath = dirpath[len(prefix):]
+ packages.append(dirpath.replace(os.path.sep, '.'))
+ return packages
+
+packages = find_packages()
+
+setup(name="Hooke",
+ version=version(),
+ maintainer="Massimo Sandal",
+ maintainer_email="hookesoftware@googlegroups.com",
+ url="http://code.google.com/p/hooke/",
+ download_url="http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.gci/hooke/archive/%s.tar.gz" % version(3),
+ license = "GNU Lesser General Public License (LGPL)",
+ platforms = ["all"],
+ description = doclines[0],
+ long_description = "\n".join(doclines[2:]),
+ classifiers = filter(None, classifiers.split("\n")),
+ scripts = ['bin/hooke'],
+ packages = packages,
+ provides = packages,
+ )