setup.py: create bin/tahoe.pyscript on Unix as well as Windows for consistency, and to reduce conditional code. ref #1306

This commit is contained in:
david-sarah 2011-01-19 15:31:45 -08:00
parent fd6cdc48ae
commit 0693181613

View File

@ -295,11 +295,9 @@ class MakeExecutable(Command):
def run(self): def run(self):
bin_tahoe_template = os.path.join("bin", "tahoe-script.template") bin_tahoe_template = os.path.join("bin", "tahoe-script.template")
if sys.platform == 'win32': # tahoe.pyscript is really only necessary for Windows, but we also
# 'tahoe' script is needed for cygwin # create it on Unix for consistency.
script_names = ["tahoe.pyscript", "tahoe"] script_names = ["tahoe.pyscript", "tahoe"]
else:
script_names = ["tahoe"]
# Create the tahoe script file under the 'bin' directory. This # Create the tahoe script file under the 'bin' directory. This
# file is exactly the same as the 'tahoe-script.template' script # file is exactly the same as the 'tahoe-script.template' script