mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	ci: include lib required to delocate on alpine
Since some recent alpine version the krb5-libs package is not installed by default anymore. When building the libpq the package got installed as a side effect of installing krb5-dev, but, in case libpq build was cached, the libraries would have been missing when packaging the wheel or importing psycopg for test.
This commit is contained in:
		
							parent
							
								
									ee4ea12eb1
								
							
						
					
					
						commit
						6517db9bc6
					
				| 
						 | 
					@ -40,11 +40,20 @@ case "$(uname)" in
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install packages required for test and wheels build, regardless of whether
 | 
				
			||||||
 | 
					# we will build the libpq or not.
 | 
				
			||||||
 | 
					case "$ID" in
 | 
				
			||||||
 | 
					    alpine)
 | 
				
			||||||
 | 
					        apk add --no-cache krb5-libs
 | 
				
			||||||
 | 
					        ;;
 | 
				
			||||||
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ -f "${LIBPQ_BUILD_PREFIX}/lib/libpq.${library_suffix}" ]]; then
 | 
					if [[ -f "${LIBPQ_BUILD_PREFIX}/lib/libpq.${library_suffix}" ]]; then
 | 
				
			||||||
    echo "libpq already available: build skipped" >&2
 | 
					    echo "libpq already available: build skipped" >&2
 | 
				
			||||||
    exit 0
 | 
					    exit 0
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install packages required to build the libpq.
 | 
				
			||||||
case "$ID" in
 | 
					case "$ID" in
 | 
				
			||||||
    centos)
 | 
					    centos)
 | 
				
			||||||
        yum update -y
 | 
					        yum update -y
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user