mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Fix ImportError on Python 3.9.0b1 for Windows
This commit is contained in:
		
							parent
							
								
									db31563fb8
								
							
						
					
					
						commit
						7daca6733d
					
				
							
								
								
									
										6
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -730,7 +730,11 @@ class pil_build_ext(build_ext): | |||
|         if struct.unpack("h", b"\0\1")[0] == 1: | ||||
|             defs.append(("WORDS_BIGENDIAN", None)) | ||||
| 
 | ||||
|         if sys.platform == "win32" and not (PLATFORM_PYPY or PLATFORM_MINGW): | ||||
|         if ( | ||||
|             sys.platform == "win32" and | ||||
|             sys.version_info < (3, 9) and | ||||
|             not (PLATFORM_PYPY or PLATFORM_MINGW) | ||||
|         ): | ||||
|             defs.append(("PILLOW_VERSION", '"\\"%s\\""' % PILLOW_VERSION)) | ||||
|         else: | ||||
|             defs.append(("PILLOW_VERSION", '"%s"' % PILLOW_VERSION)) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user