Add download_url to setup.py.
authorW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 20:23:40 +0000 (16:23 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 19 Apr 2011 20:23:40 +0000 (16:23 -0400)
setup.py

index aae40d1..13cb374 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -9,22 +9,30 @@ import os.path
 from pysawsim import __version__
 
 
+package_name = 'sawsim'
+python_package_name = 'pysawsim'
+
 SCRIPT_DIR = 'bin'
 scripts = [os.path.join(SCRIPT_DIR, s) for s in listdir(SCRIPT_DIR)
            if s.endswith('.py')]
+packages = [
+    'pysawsim',
+    'pysawsim.manager',
+    'pysawsim.test']
 
 _this_dir = os.path.dirname(__file__)
 
+
 setup(
-    name='pysawsim',
+    name=python_package_name,
     version=__version__,
     author='W. Trevor King',
     author_email='wking@drexel.edu',
     description=__doc__,
     long_description = open(os.path.join(_this_dir, 'README'), 'r').read(),
-    url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/sawsim/',
-    packages=['pysawsim',
-              'pysawsim.manager',
-              'pysawsim.test'],
+    url='http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/%s/' % package_name,
+    download_url='http://www.physics.drexel.edu/~wking/code/python/%s-%s.tar.gz' % (package_name, __version__),
+    packages=packages,
+    provides=packages,
     scripts=scripts,
     )