From: david-sarah Date: Wed, 19 Jan 2011 23:31:45 +0000 (-0800) Subject: setup.py: create bin/tahoe.pyscript on Unix as well as Windows for consistency, and... X-Git-Tag: allmydata-tahoe-1.8.2b1~33 X-Git-Url: https://git.rkrishnan.org/pf/content/en//%22%22?a=commitdiff_plain;h=0693181613914c84f83b73b47c2193bd0a3c5716;p=tahoe-lafs%2Ftahoe-lafs.git setup.py: create bin/tahoe.pyscript on Unix as well as Windows for consistency, and to reduce conditional code. ref #1306 --- diff --git a/setup.py b/setup.py index 1d6af751..7cf70f3e 100644 --- a/setup.py +++ b/setup.py @@ -295,11 +295,9 @@ class MakeExecutable(Command): def run(self): bin_tahoe_template = os.path.join("bin", "tahoe-script.template") - if sys.platform == 'win32': - # 'tahoe' script is needed for cygwin - script_names = ["tahoe.pyscript", "tahoe"] - else: - script_names = ["tahoe"] + # tahoe.pyscript is really only necessary for Windows, but we also + # create it on Unix for consistency. + script_names = ["tahoe.pyscript", "tahoe"] # Create the tahoe script file under the 'bin' directory. This # file is exactly the same as the 'tahoe-script.template' script