[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Tools/scripts pydoc,NONE,1.1

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 2 Mar 2001 09:56:17 -0500


On Fri, Mar 02, 2001 at 09:34:37AM -0500, Guido van Rossum wrote:
>> because the /usr/bin/env python thing hits the older python in /usr
>> first.
>> Don't bother if this is actually difficult.
>
>This could become a standard distutils feature!

It already does this for regular distributions (see build_scripts.py),
but running with a newly built Python causes problems; it uses
sys.executable, which results in '#!python' at build time.  I'm not
sure how to fix this; perhaps the Makefile should always set a
BUILDING_PYTHON environment variable, and the Distutils could check
for its being set.  

--amk