follow up question to issue #1017 how to run shell commands with activated env
- Vorherrschende Sprache
- Julia
- Sterne
- 1.5k
- Forks
- 186
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
once I successfully install the `playwright` package with PyCall.jl
```
pyimport_conda("playwright", "playwright", "microsoft")
```
I need to run this shell command in that conda env to install web drivers for playwright python package. I don't know know how to call this from `Playwright.jl` package which is let's say
```
module Playwright
#...
#...
#...
function __init__()
copy!(playwright, pyimport(.....)
# here I need to run `playwright install` in that env
end
#...
#...
end
```
This is how the python output looks like in `pytest-playwright` conda env
```
┬─[abhi@Abhimanyus-MacBook-Air:~/m/e/p/l/p/s/playwright]─[19:58:57]
╰─>$ playwright install (pytest-playwright)
Downloading Chromium 107.0.5304.18 (playwright build v1028) - 119.8 Mb [====================] 100% 0.0s
Chromium 107.0.5304.18 (playwright build v1028) downloaded to /Users/abhi/Library/Caches/ms-playwright/chromium-1028
Downloading FFMPEG playwright build v1007 - 1 Mb [====================] 100% 0.0s
FFMPEG playwright build v1007 downloaded to /Users/abhi/Library/Caches/ms-playwright/ffmpeg-1007
Downloading Firefox 105.0.1 (playwright build v1357) - 68.5 Mb [====================] 100% 0.0s
Firefox 105.0.1 (playwright build v1357) downloaded to /Users/abhi/Library/Caches/ms-playwright/firefox-1357
Downloading Webkit 16.0 (playwright build v1724) - 53.9 Mb [====================] 100% 0.0s
Webkit 16.0 (playwright build v1724) downloaded to /Users/abhi/Library/Caches/ms-playwright/webkit-1724
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with PyCall.jl's pyimport_conda entry point and the __init__ example in the issue, then read the context from issue #1017. Determine how a command such as `playwright install` could run in the selected conda environment; done means the supported approach is documented or the requested package behavior is clearly scoped.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- julia, playwright, python
- Bereich
- cli, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100