Skip to content

Commit c80543d

Browse files
author
Richard Jones
committed
run python in optimise mode
1 parent 01f0ef6 commit c80543d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.38 2002-09-10 01:07:05 richard Exp $
19+
# $Id: setup.py,v 1.39 2002-09-23 08:17:50 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -85,11 +85,11 @@ def copy_scripts(self):
8585
try:
8686
if sys.platform == "win32":
8787
file.write('@echo off\n'
88-
'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
89-
'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
88+
'if NOT "%%_4ver%%" == "" %(python)s -O -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
89+
'if "%%_4ver%%" == "" %(python)s -O -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
9090
% script_vars)
9191
else:
92-
file.write('#! %(python)s\n'
92+
file.write('#! %(python)s -O\n'
9393
'from %(package)s.scripts.%(module)s import run\n'
9494
'run()\n'
9595
% script_vars)

0 commit comments

Comments
 (0)