Skip to content

Commit e43001d

Browse files
author
Richard Jones
committed
remove -O from script hard-coding so people can debug if they want to
1 parent e55c602 commit e43001d

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.74 2004-11-10 22:27:39 richard Exp $
19+
# $Id: setup.py,v 1.75 2004-11-11 06:13:52 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -164,11 +164,11 @@ def copy_scripts(self):
164164
# may be useful for cygwin.
165165
if os.path.splitext(outfile)[1] == ".bat":
166166
file.write('@echo off\n'
167-
'if NOT "%%_4ver%%" == "" "%(python)s" -O -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
168-
'if "%%_4ver%%" == "" "%(python)s" -O -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
167+
'if NOT "%%_4ver%%" == "" "%(python)s" -c "from %(package)s.scripts.%(module)s import run; run()" %%$\n'
168+
'if "%%_4ver%%" == "" "%(python)s" -c "from %(package)s.scripts.%(module)s import run; run()" %%*\n'
169169
% script_vars)
170170
else:
171-
file.write('#! %(python)s -O\n%(prefix)s'
171+
file.write('#! %(python)s\n%(prefix)s'
172172
'from %(package)s.scripts.%(module)s import run\n'
173173
'run()\n'
174174
% script_vars)

0 commit comments

Comments
 (0)