Skip to content

Commit

Permalink
Use pip and python from virtual env
Browse files Browse the repository at this point in the history
Signed-off-by: nojaf <[email protected]>
  • Loading branch information
nojaf committed Oct 3, 2024
1 parent 688a6d7 commit 0647d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magefiles/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ func Build() error {
return err
}

if err := sh.RunV("sh", "-c", "'source ./env/bin/activate'"); err != nil {
if err := sh.RunV("./env/bin/pip", "install", "build", "ziglang"); err != nil {
return err
}

if err := sh.RunV("pip", "install", "build", "ziglang"); err != nil {
if err := sh.RunV("./env/bin/python", "-mziglang", "cc"); err != nil {
return err
}

Expand Down

0 comments on commit 0647d5c

Please sign in to comment.