prereq-build: fix python distutils detection
Debian and by extension Ubuntu packages distutils in a suboptimal way where import distutils works but none of the methods do. This alternative check verifies that distutils is actually usable. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
		 Rosen Penev
					Rosen Penev
				
			
				
					committed by
					
						 Christian Marangi
						Christian Marangi
					
				
			
			
				
	
			
			
			 Christian Marangi
						Christian Marangi
					
				
			
						parent
						
							4d014a7bd6
						
					
				
				
					commit
					be6f012551
				
			| @@ -188,7 +188,7 @@ $(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \ | |||||||
|  |  | ||||||
| $(eval $(call TestHostCommand,python3-distutils, \ | $(eval $(call TestHostCommand,python3-distutils, \ | ||||||
| 	Please install the Python3 distutils module, \ | 	Please install the Python3 distutils module, \ | ||||||
| 	$(STAGING_DIR_HOST)/bin/python3 -c 'import distutils')) | 	$(STAGING_DIR_HOST)/bin/python3 -c 'from distutils import util')) | ||||||
|  |  | ||||||
| $(eval $(call SetupHostCommand,file,Please install the 'file' package, \ | $(eval $(call SetupHostCommand,file,Please install the 'file' package, \ | ||||||
| 	file --version 2>&1 | grep file)) | 	file --version 2>&1 | grep file)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user