From e2d5d015420d83c8fa04a864783035f7fb351e6e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 19 Apr 2011 16:23:40 -0400 Subject: [PATCH] Add download_url to setup.py. --- setup.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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, ) -- 2.26.2