asdf-community / asdf-community/asdf-python
System python sets "python" to python2 when /usr/bin/python is python3
- Vorherrschende Sprache
- Shell
- Sterne
- 729
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
OS: Void Linux
Without asdf-python installed: The system handles invocation of python commands. I can type `python2` or `python3` to invoke the specified version. I can also type `python` (which I am used to doing) and in this system, that is symlinked to `python3`.
With asdf-python installed: I still would like to use the system python when I haven't manually selected a different version.
I configured it with the command: `asdf global python system`
However, now the `python` command (`$HOME/.asdf/shims/python`) executes `python2` instead.
This may also be an issue in Ubuntu or Debian when the `python-is-python3` package is installed, but I haven't tested that yet.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, das Verhalten über $HOME/.asdf/shims/python nach dem Ausführen von `asdf global python system` zu reproduzieren, und vergleiche es mit den Systembefehlen `python`, `python2` und `python3`. Untersuche den asdf-python-Shim und das Verhalten bei der Versionsauswahl; abgeschlossen ist dies, wenn die Systemauswahl bewirkt, dass `python` das System-Python 3 statt Python 2 aufruft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, shell
- Bereich
- cli, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100