Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ _installPipCommon() {
fi
}

_installPipSystem() {
apt-get -y install python3-pandas python3-numpy python3-click python3-yaml python3-yamlfix
}

# Enterprise Linux 7 cleanup
_install_EL7_CleanUp() {
yum clean -y all
rm -rf /var/lib/apt/lists/*
}

# Enterprise Linux 7 package installation (EL7 = RHEL 7 or CentOS 7)
Expand Down Expand Up @@ -76,7 +79,6 @@ _install_EL7_Packages() {
# Enterprise Linux 8/9 cleanup
_install_EL8_EL9_CleanUp() {
dnf clean -y all
rm -rf /var/lib/apt/lists/*
}

# Enterprise Linux 8/9 package installation (EL8/EL9 = RHEL, Rocky Linux, AlmaLinux, or CentOS 8 as no CentOS 9 exists)
Expand Down Expand Up @@ -426,18 +428,18 @@ case "${os}" in
if [[ ${CI} == "yes" ]]; then
echo "WARNING: Installing CI dependencies is only supported on Ubuntu 22.04" >&2
fi

# Detect EL version to choose appropriate functions
if [[ -f /etc/os-release ]]; then
elVersion=$(awk -F= '/^VERSION_ID/{print $2}' /etc/os-release | sed 's/"//g' | cut -d. -f1)
else
echo "ERROR: Could not detect Enterprise Linux version" >&2
exit 1
fi

# First install OpenROAD base
_installORDependencies

# Determine between EL7 vs EL8/9, since yum vs dnf should be used, and different Klayout builds exist
case "${elVersion}" in
"7")
Expand All @@ -459,7 +461,7 @@ case "${os}" in
exit 1
;;
esac

if [[ "${option}" == "common" || "${option}" == "all" ]]; then
_installPipCommon
fi
Expand All @@ -478,14 +480,18 @@ case "${os}" in
_installUbuntuPackages "${version}"
_installUbuntuCleanUp
fi
if [[ "${option}" == "common" || "${option}" == "all" ]]; then
if [[ $version != "rodete" ]]; then
if [[ $version != "rodete" ]]; then
if [[ "${option}" == "common" || "${option}" == "all" ]]; then
if _versionCompare ${version} -lt 23.04 ; then
_installPipCommon
else
if [[ "${option}" == "base" || "${option}" == "all" ]]; then
_installPipSystem
fi
fi
else
echo "Skip common for rodete"
fi
else
echo "Skip pip packages for rodete"
fi
;;
"Darwin" )
Expand Down