From: richard Date: Mon, 23 Sep 2002 08:17:50 +0000 (+0000) Subject: run python in optimise mode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=acb368e7a7ebc50fa7088d7939a9bb1554971caa;p=roundup.git run python in optimise mode git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1212 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/setup.py b/setup.py index 52e4edc..97ce56f 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: setup.py,v 1.38 2002-09-10 01:07:05 richard Exp $ +# $Id: setup.py,v 1.39 2002-09-23 08:17:50 richard Exp $ from distutils.core import setup, Extension from distutils.util import get_platform @@ -85,11 +85,11 @@ class build_scripts_create(build_scripts): try: if sys.platform == "win32": file.write('@echo off\n' - 'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' - 'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n' + 'if NOT "%%_4ver%%" == "" %(python)s -O -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n' + 'if "%%_4ver%%" == "" %(python)s -O -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n' % script_vars) else: - file.write('#! %(python)s\n' + file.write('#! %(python)s -O\n' 'from %(package)s.scripts.%(module)s import run\n' 'run()\n' % script_vars)