mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Fix for bug #405007: prefix subdir to scripts in order to build in
a subdirectory.
This commit is contained in:
		
							parent
							
								
									8bad993dd3
								
							
						
					
					
						commit
						3da989c6bc
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
					@ -79,6 +79,10 @@ class PyBuildExt(build_ext):
 | 
				
			||||||
        srcdir = os.path.normpath(srcdir)
 | 
					        srcdir = os.path.normpath(srcdir)
 | 
				
			||||||
        moddir = os.path.normpath(moddir)
 | 
					        moddir = os.path.normpath(moddir)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Fix up the paths for scripts, too
 | 
				
			||||||
 | 
					        self.distribution.scripts = [os.path.join(srcdir, filename)
 | 
				
			||||||
 | 
					                                     for filename in self.distribution.scripts]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for ext in self.extensions[:]:
 | 
					        for ext in self.extensions[:]:
 | 
				
			||||||
            ext.sources = [ os.path.join(moddir, filename)
 | 
					            ext.sources = [ os.path.join(moddir, filename)
 | 
				
			||||||
                            for filename in ext.sources ]
 | 
					                            for filename in ext.sources ]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue