fedora-python / fedora-python/tox-current-env

Running from within a virtualenv

Offen
#51 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
documentation
Vorherrschende Sprache
Python
Sterne
26
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I wanted to use `tox --current-env` from within a *virtualenv*. I could not find anything in the README indicating that it doesn't fundamentally work.

However, since tox-current-env just symlinks the `python` executable of the virtualenv, the normal mechanism of virtualenv to set `sys.path` relative to the path of the python executable does not seem to apply and none of the site-packages of the virtualenv are available in `tox-current-env`'s fake virtualenv.

I'm wondering if this is intentional, then maybe the documentation could be improved. Otherwise maybe symlink the `lib` directory of the virtualenv or possibly setting `PYTHONPATH` could help such that tox-current-env also works out of a virtualenv.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Reproduziere `tox --current-env` innerhalb einer virtualenv und lies anschließend das README. Untersuche, wie tox-current-env die ausführbare Datei `python` der virtualenv symbolisch verknüpft. Erledigt ist die Aufgabe, wenn entweder die Einschränkung dokumentiert wird, falls sie beabsichtigt ist, oder ein unterstützter Weg bestätigt wird, über den die fake virtualenv auf die site-packages der ursprünglichen Umgebung zugreifen kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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