Skip to content

Commit 842626c

Browse files
fix: ensure the venv is built offline
1 parent dbad971 commit 842626c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ all: $(NAME)
1111

1212
venv:
1313
python -m venv venv || ./bootstrap-docker-venv.sh
14-
venv/bin/pip install -e .
14+
venv/bin/pip install -e . --no-build-isolation
1515

1616
$(NAME): venv
17-
for d in $@; do [ -f $@ ] || ln -s {venv/bin/,}$@; done
17+
for d in $@; do ln -s venv/bin/$@ $@; done
1818

1919
.PHONY: all $(NAME)
2020

bootstrap-docker-venv.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ virtualenv venv \
4141

4242
venv/bin/pip \
4343
install \
44+
--no-index \
45+
--break-system-packages \
46+
--root-user-action ignore \
4447
--no-build-isolation \
4548
pip-cache/*.whl

0 commit comments

Comments
 (0)