mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Rewrite the install_name of the ZLIB-NG library on macOS.
This commit is contained in:
		
							parent
							
								
									2486361002
								
							
						
					
					
						commit
						120ba1c13d
					
				
							
								
								
									
										8
									
								
								.github/workflows/wheels-dependencies.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/wheels-dependencies.sh
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -72,6 +72,14 @@ function build_zlib_ng {
 | 
				
			||||||
        && ./configure --prefix=$BUILD_PREFIX --zlib-compat \
 | 
					        && ./configure --prefix=$BUILD_PREFIX --zlib-compat \
 | 
				
			||||||
        && make -j4 \
 | 
					        && make -j4 \
 | 
				
			||||||
        && make install)
 | 
					        && make install)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if [ -n "$IS_MACOS" ]; then
 | 
				
			||||||
 | 
					        # Ensure that on macOS, the library name is an absolute path, not an
 | 
				
			||||||
 | 
					        # @rpath, so that delocate picks up the right library (and doesn't need
 | 
				
			||||||
 | 
					        # DYLD_LIBRARY_PATH to be set). The default Makefile doesn't have an
 | 
				
			||||||
 | 
					        # option to control the install_name.
 | 
				
			||||||
 | 
					        install_name_tool -id $BUILD_PREFIX/lib/libz.1.dylib $BUILD_PREFIX/lib/libz.1.dylib
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
    touch zlib-stamp
 | 
					    touch zlib-stamp
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -104,7 +104,6 @@ test-extras = "tests"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tool.cibuildwheel.macos.environment]
 | 
					[tool.cibuildwheel.macos.environment]
 | 
				
			||||||
PATH = "$(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
 | 
					PATH = "$(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
 | 
				
			||||||
DYLD_LIBRARY_PATH = "$(pwd)/build/deps/darwin/lib"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tool.black]
 | 
					[tool.black]
 | 
				
			||||||
exclude = "wheels/multibuild"
 | 
					exclude = "wheels/multibuild"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user