mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	
							parent
							
								
									52306a780b
								
							
						
					
					
						commit
						fb173cd471
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		|  | @ -7,6 +7,7 @@ | |||
| __revision__ = "$Id$" | ||||
| 
 | ||||
| import sys, os, re | ||||
| from distutils import sysconfig | ||||
| from distutils.core import Command | ||||
| from distutils.dep_util import newer | ||||
| from distutils.util import convert_path | ||||
|  | @ -86,8 +87,16 @@ def copy_scripts (self): | |||
|                               (script, self.build_dir)) | ||||
|                 if not self.dry_run: | ||||
|                     outf = open(outfile, "w") | ||||
|                     outf.write("#!%s%s\n" %  | ||||
|                                (os.path.normpath(sys.executable), post_interp)) | ||||
|                     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() | ||||
|                 if f: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael W. Hudson
						Michael W. Hudson