Skip to content

Commit 6e5129f

Browse files
committed
ci(macos): Use venv instead of global install
brew/python doesn't like installing python packages globally: ``` error: externally-managed-environment × This environment is externally managed ```
1 parent 4f40eb7 commit 6e5129f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/macos-script.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ brew install \
88
automake \
99
bash
1010

11-
python3 -m pip install -r test/requirements.txt
12-
1311
oldpwd=$(pwd)
1412
cp -a . /work
1513
cd /work
1614

15+
python3 -m venv venv
16+
#shellcheck disable=SC1091
17+
source venv/bin/activate
18+
python3 -m pip install -r test/requirements.txt
19+
1720
export bashcomp_bash=bash
1821
env
1922

0 commit comments

Comments
 (0)