Added distutils-based setup.py.
authorW. Trevor King <wking@drexel.edu>
Fri, 14 May 2010 14:39:58 +0000 (10:39 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 14 May 2010 14:39:58 +0000 (10:39 -0400)
setup.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..db44e7c
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,51 @@
+"""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,
+      )