mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	py3k: Get setup.py to run under python3
First real fix: open the temp file in text mode.
This commit is contained in:
		
							parent
							
								
									78575798d7
								
							
						
					
					
						commit
						009eee0577
					
				
							
								
								
									
										3
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								setup.py
									
									
									
									
									
								
							| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					from __future__ import print_function
 | 
				
			||||||
import glob
 | 
					import glob
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
import platform
 | 
					import platform
 | 
				
			||||||
| 
						 | 
					@ -433,7 +434,7 @@ class pil_build_ext(build_ext):
 | 
				
			||||||
            tmpfile)
 | 
					            tmpfile)
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            if ret >> 8 == 0:
 | 
					            if ret >> 8 == 0:
 | 
				
			||||||
                fp = open(tmpfile, 'rb')
 | 
					                fp = open(tmpfile, 'r')
 | 
				
			||||||
                multiarch_path_component = fp.readline().strip()
 | 
					                multiarch_path_component = fp.readline().strip()
 | 
				
			||||||
                _add_directory(self.compiler.library_dirs,
 | 
					                _add_directory(self.compiler.library_dirs,
 | 
				
			||||||
                    '/usr/lib/' + multiarch_path_component)
 | 
					                    '/usr/lib/' + multiarch_path_component)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user