Project

General

Profile

Actions

Idea #21230

closed

Remove usage of global "pip install" in package build/test scripts

Added by Tom Clegg 12 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Start date:
01/12/2024
Due date:
Story points:
1.0
Release:
Release relationship:
Auto

Description

Example of obsolete usage in source:build/run-library.sh:

  # Note "pip3 install setuptools" fails on debian12 ("error:
  # externally-managed-environment") even if that requirement is
  # already satisfied, so we parse "pip3 list" output instead to check
  # whether we need to do anything.
  if [[ "$($pip list | grep -P -o '^setuptools\s+\K[0-9]+')" -ge 66 ]]; then
    : # OK, already installed
  elif ! $pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -U 'setuptools>=66'; then
    echo "Error, unable to upgrade setuptools with" 
    echo "  $pip install $DASHQ_UNLESS_DEBUG $CACHE_FLAG -U 'setuptools>=66'" 
    exit 1

From #20846#note-32:

the modern way to handle things would be to install Python; python3 -m venv VENVDIR; and then do everything inside the virtualenv, including installing setuptools (and upgrading pip if desired).


Subtasks 1 (0 open1 closed)

Task #21332: Review 21230-no-global-pipResolvedPeter Amstutz01/12/2024Actions

Related issues

Related to Arvados - Idea #20846: Support Ubuntu 22.04 LTSResolvedBrett Smith10/30/2023Actions
Blocks Arvados - Feature #21389: Update arvados/jobs Docker image to Debian 12NewActions
Blocks Arvados - Bug #21390: Update arvados/dev-jobs Docker image to Debian 12NewActions
Blocks Arvados - Feature #21391: Update arvbox to Debian 12NewActions
Actions

Also available in: Atom PDF