dbcli / dbcli/mssql-cli

mssql-cli refers to "python" directly, which may not be available.

Offen
#570 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
1.4k
Forks
191
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The startup script tries to run `python` (https://github.com/dbcli/mssql-cli/blob/67a3a4364383d11776bb0a397ceae7bc19200e41/mssql-cli#L16)
This is not available in some environments. For example fedora uses only version-specific `python3`. [PEP-0394](https://peps.python.org/pep-0394/) says basically that `python3` is more likely to exist than bare `python` (which may not be guaranteed to point at python3)

But the ideal solution would be to generate an entry point that uses the "current installation" python, like pip and other apps do. So when I install mssql-cli in a venv, the binary points at the local python, not my system one.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem Startskript unter mssql-cli#L16 und untersuche, wie das Projekt seinen Kommando-Einstiegspunkt paketiert und installiert. Erledigt ist die Aufgabe, wenn ein installiertes mssql-cli das Python der aktuellen Installation verwendet, auch in einer virtuellen Umgebung, ohne auf eine bloße ausführbare Datei `python` angewiesen zu sein; überprüfe das Verhalten in einer Umgebung, in der nur versionsspezifisches Python verfügbar ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.