canonical / canonical/layer-basic
Attempt to preserve system pip doesn't work
- Vorherrschende Sprache
- Python
- Sterne
- 10
- Forks
- 42
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently, when not using a virtualenv, bootstrap_charm_deps() function saves a copy of /usr/bin/pip3, pip upgrades the system pip, and then restores the copy of /usr/bin/pip
This is presumably trying to undo the effect of pip-upgrading pip. But it does not achieve this, as the /usr/bin/pip3 file is just an entrypoint, that uses "from pip import main", and the pip upgrade is still in
/usr/local/lib/python3.5/dist-packages, and is used by the restored /usr/bin/pip3 just fine
pip3 needs pip uninstalling, as well as restoring /usr/bin/pip3, I think
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginnen Sie am im Issue beschriebenen Einstiegspunkt bootstrap_charm_deps() und untersuchen Sie, wie /usr/bin/pip3 kopiert, aktualisiert und wiederhergestellt wird. Überprüfen Sie außerdem, dass die System-Pip-Installation unter /usr/local/lib/python3.5/dist-packages ebenfalls behandelt wird, und betrachten Sie die Arbeit als abgeschlossen, wenn das Bootstrapen der Abhängigkeiten nicht mehr dazu führt, dass die aktualisierte System-Pip verwendet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100