[Python-checkins] CVS: python/dist/src/Lib/distutils/command build_scripts.py,1.12,1.13

Michael Hudson mwh@users.sourceforge.net
2001年12月10日 08:15:46 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv14688
Modified Files:
	build_scripts.py 
Log Message:
Fix for 
[ #409430 ] pydoc install broken
Index: build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_scripts.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** build_scripts.py	2001年12月06日 21:29:28	1.12
--- build_scripts.py	2001年12月10日 16:15:44	1.13
***************
*** 8,11 ****
--- 8,12 ----
 
 import sys, os, re
+ from distutils import sysconfig
 from distutils.core import Command
 from distutils.dep_util import newer
***************
*** 87,92 ****
 if not self.dry_run:
 outf = open(outfile, "w")
! outf.write("#!%s%s\n" % 
! (os.path.normpath(sys.executable), post_interp))
 outf.writelines(f.readlines())
 outf.close()
--- 88,101 ----
 if not self.dry_run:
 outf = open(outfile, "w")
! if not sysconfig.python_build:
! outf.write("#!%s%s\n" % 
! (os.path.normpath(sys.executable),
! post_interp))
! else:
! outf.write("#!%s%s" %
! (os.path.join(
! sysconfig.get_config_var("BINDIR"),
! "python" + sysconfig.get_config_var("EXE")),
! post_interp))
 outf.writelines(f.readlines())
 outf.close()

AltStyle によって変換されたページ (->オリジナル) /