removed lsb_release dependency
This commit is contained in:
parent
622a7104b3
commit
00d8faacdf
|
@ -89,7 +89,8 @@ if ${BUILD_PYTHONAPI} ; then
|
|||
# Add patchelf to the path. Auditwheel relies on patchelf to repair ELF files.
|
||||
export PATH="${LIBCARLA_INSTALL_CLIENT_FOLDER}/bin:${PATH}"
|
||||
|
||||
if [[ $(lsb_release -c --short) != "bionic" ]] && [[ ! -z ${TARGET_WHEEL_PLATFORM} ]]; then
|
||||
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME)
|
||||
if [[ ! -z ${TARGET_WHEEL_PLATFORM} ]] && [[ ${CODENAME#*=} != "bionic" ]] ; then
|
||||
log "A target platform has been specified but you are not using a compatible linux distribution. The wheel repair step will be skipped"
|
||||
TARGET_WHEEL_PLATFORM=
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue