mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +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 os | ||||
| import platform | ||||
|  | @ -433,7 +434,7 @@ class pil_build_ext(build_ext): | |||
|             tmpfile) | ||||
|         try: | ||||
|             if ret >> 8 == 0: | ||||
|                 fp = open(tmpfile, 'rb') | ||||
|                 fp = open(tmpfile, 'r') | ||||
|                 multiarch_path_component = fp.readline().strip() | ||||
|                 _add_directory(self.compiler.library_dirs, | ||||
|                     '/usr/lib/' + multiarch_path_component) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user