From: W. Trevor King Date: Tue, 19 Apr 2011 20:23:40 +0000 (-0400) Subject: Add download_url to setup.py. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2d5d015420d83c8fa04a864783035f7fb351e6e;p=sawsim.git Add download_url to setup.py. --- diff --git a/setup.py b/setup.py index aae40d1..13cb374 100755 --- 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, )