mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	package_dir must be converted from the distutils path conventions to
local conventions before being used by build_py. Fixes SF bug #509288, probably a candidate for 2.2.1
This commit is contained in:
		
							parent
							
								
									7cff66d469
								
							
						
					
					
						commit
						0c350bfad0
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,6 +12,7 @@
 | 
			
		|||
 | 
			
		||||
from distutils.core import Command
 | 
			
		||||
from distutils.errors import *
 | 
			
		||||
from distutils.util import convert_path
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class build_py (Command):
 | 
			
		||||
| 
						 | 
				
			
			@ -50,7 +51,10 @@ def finalize_options (self):
 | 
			
		|||
        # options -- list of packages and list of modules.
 | 
			
		||||
        self.packages = self.distribution.packages
 | 
			
		||||
        self.py_modules = self.distribution.py_modules
 | 
			
		||||
        self.package_dir = self.distribution.package_dir
 | 
			
		||||
        self.package_dir = {}
 | 
			
		||||
        if self.distribution.package_dir:
 | 
			
		||||
            for name, path in self.distribution.package_dir.items():
 | 
			
		||||
                self.package_dir[name] = convert_path(path)
 | 
			
		||||
 | 
			
		||||
        # Ick, copied straight from install_lib.py (fancy_getopt needs a
 | 
			
		||||
        # type system!  Hell, *everything* needs a type system!!!)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue