Add simple setup.py for installing pysawsim.
authorW. Trevor King <wking@drexel.edu>
Tue, 2 Nov 2010 19:03:43 +0000 (15:03 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 2 Nov 2010 19:03:43 +0000 (15:03 -0400)
setup.py [new file with mode: 0755]

diff --git a/setup.py b/setup.py
new file mode 100755 (executable)
index 0000000..9fd03bb
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+from distutils.core import setup
+from os import listdir
+import os.path
+
+from pysawsim import __version__
+
+
+SCRIPT_DIR = 'bin'
+scripts = [os.path.join(SCRIPT_DIR, s) for s in listdir(SCRIPT_DIR)
+           if s.endswith('.py')]
+
+setup(
+    name='pysawsim',
+    version=__version__,
+    description='Python framework for the sawsim force spectroscopy simulator.',
+    url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/sawsim/',
+    packages=['pysawsim',
+              'pysawsim.manager'],
+    scripts=scripts,
+    )