diff --git a/etc/DependencyInstaller.sh b/etc/DependencyInstaller.sh index 6097a39696..98f286ea1e 100755 --- a/etc/DependencyInstaller.sh +++ b/etc/DependencyInstaller.sh @@ -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) @@ -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) @@ -426,7 +428,7 @@ 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) @@ -434,10 +436,10 @@ case "${os}" in 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") @@ -459,7 +461,7 @@ case "${os}" in exit 1 ;; esac - + if [[ "${option}" == "common" || "${option}" == "all" ]]; then _installPipCommon fi @@ -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" )