[Patches] Add -t flag to Python executable for test and install targets

Skip Montanaro skip@mojam.com (Skip Montanaro)
Thu, 10 Feb 2000 08:51:36 -0600


In python-dev Paul Prescod raised the question whether -t (tab warning)
should be the default behavior in future versions of Python.  In the ensuing 
discussion someone commented that the standard for the Python distribution
is to indent using all spaces.  

I decided to add -t to the test and install targets to catch problems
(caught a few - I'll try and send patches shortly).  The attached diff for
the toplevel Makefile.in seems to do the trick.

Skip Montanaro | http://www.mojam.com/
skip@mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer

Release info:

I confirm that, to the best of my knowledge and belief, this contribution is
free of any claims of third parties under copyright, patent or other rights
or interests ("claims").  To the extent that I have any such claims, I
hereby grant to CNRI a nonexclusive, irrevocable, royalty-free, worldwide
license to reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part of the
Python software and its related documentation, or any derivative versions
thereof, at no cost to CNRI or its licensed users, and to authorize others
to do so.

I acknowledge that CNRI may, at its sole discretion, decide whether or not
to incorporate this contribution in the Python software and its related
documentation.  I further grant CNRI permission to use my name and other
identifying information provided to CNRI by me for use in connection with
the Python software and its related documentation.

*** /tmp/Makefile.in.~1.81~	Thu Feb 10 08:41:53 2000
--- /tmp/Makefile.in	Thu Feb 10 08:41:53 2000
***************
*** 234,240 ****
  # Test the interpreter (twice, once without .pyc files, once with)
  TESTOPTS=	
  TESTPROG=	$(srcdir)/Lib/test/regrtest.py
! TESTPYTHON=	./python$(EXE)
  test:		all
  		-rm -f $(srcdir)/Lib/test/*.py[co]
  		-PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
--- 234,240 ----
  # Test the interpreter (twice, once without .pyc files, once with)
  TESTOPTS=	
  TESTPROG=	$(srcdir)/Lib/test/regrtest.py
! TESTPYTHON=	./python$(EXE) -t
  test:		all
  		-rm -f $(srcdir)/Lib/test/*.py[co]
  		-PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
***************
*** 346,352 ****
  			done; \
  		done
  		PYTHONPATH=$(LIBDEST) \
! 			./python$(EXE) $(LIBDEST)/compileall.py $(LIBDEST)
  		PYTHONPATH=$(LIBDEST) \
  			./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
  
--- 346,352 ----
  			done; \
  		done
  		PYTHONPATH=$(LIBDEST) \
! 			./python$(EXE) -t $(LIBDEST)/compileall.py $(LIBDEST)
  		PYTHONPATH=$(LIBDEST) \
  			./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)