mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Check if the claimed build directory doesn't exist, and warn that we don't
have any Python modules to install (rather than bomb when we try to copy a non-existent directory).
This commit is contained in:
		
							parent
							
								
									44a61bbb66
								
							
						
					
					
						commit
						f355d473fa
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -53,7 +53,12 @@ def run (self): | ||||||
|         # Install everything: simply dump the entire contents of the build |         # Install everything: simply dump the entire contents of the build | ||||||
|         # directory to the installation directory (that's the beauty of |         # directory to the installation directory (that's the beauty of | ||||||
|         # having a build directory!) |         # having a build directory!) | ||||||
|         outfiles = self.copy_tree (self.build_dir, self.install_dir) |         if os.path.isdir(self.build_dir): | ||||||
|  |             outfiles = self.copy_tree (self.build_dir, self.install_dir) | ||||||
|  |         else: | ||||||
|  |             self.warn("'%s' does not exist -- no Python modules to install" % | ||||||
|  |                       self.build_dir) | ||||||
|  |             return | ||||||
| 
 | 
 | ||||||
|         # (Optionally) compile .py to .pyc |         # (Optionally) compile .py to .pyc | ||||||
|         # XXX hey! we can't control whether we optimize or not; that's up |         # XXX hey! we can't control whether we optimize or not; that's up | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Greg Ward
						Greg Ward