parameters: (ctx)
docstring: Make sure on Ubuntu, Python packages are install with apt and not pip
docstring_summary: Make sure on Ubuntu, Python packages are install with apt and not pip
docstring_tokens: Make sure on Ubuntu Python packages are install with apt and not pip
function: def pip_install_check_on_ubuntu(ctx):
      """Make sure on Ubuntu, Python packages are install with apt and not pip"""
      if (is_host_os_ubuntu()):
          warn_str = ''
          pt_to_deb_package_names = list(py_to_deb_core_packages.keys()) + \
              list(py_to_deb_optional_packages.keys()) + list(py_to_deb_release_packages.keys())
          for py_pkg in pt_to_deb_package_names:
              if is_python_package_installed_via_pip_on_ubuntu(py_pkg):
                  warn_str = warn_str + py_pkg + ' -- '
          if (warn_str != ''):
              return warn_str
function_tokens: def pip_install_check_on_ubuntu ( ctx ) : if ( is_host_os_ubuntu ( ) ) : warn_str = '' pt_to_deb_package_names = list ( py_to_deb_core_packages . keys ( ) ) + list ( py_to_deb_optional_packages . keys ( ) ) + list ( py_to_deb_release_packages . keys ( ) ) for py_pkg in pt_to_deb_package_names : if is_python_package_installed_via_pip_on_ubuntu ( py_pkg ) : warn_str = warn_str + py_pkg + ' -- ' if ( warn_str != '' ) : return warn_str