Skip to content

Commit 1a7ef7e

Browse files
committed
Fix pip invocation for windows
1 parent 0d30a1b commit 1a7ef7e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,14 @@ install-pydeps-test: ## Install python deps necessary to run unit tests.
6565
${MAKE} install-pip
6666
$(PYTHON) -m pip install $(PIP_INSTALL_ARGS) pip setuptools
6767
$(PYTHON) -c \
68-
"import tomllib; c = tomllib.load(open('pyproject.toml', 'rb')); print('\n'.join(c['project']['optional-dependencies']['test']))" \
69-
| $(PYTHON) -m pip install $(PIP_INSTALL_ARGS) -r /dev/stdin
68+
"import tomllib, subprocess, sys; c = tomllib.load(open('pyproject.toml', 'rb')); d = c['project']['optional-dependencies']; subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + '$(PIP_INSTALL_ARGS)'.split() + d['test'])"
7069

7170
install-pydeps-dev: ## Install python deps meant for local development.
7271
${MAKE} install-git-hooks
7372
${MAKE} install-pip
7473
$(PYTHON) -m pip install $(PIP_INSTALL_ARGS) pip setuptools
7574
$(PYTHON) -c \
76-
"import tomllib; c = tomllib.load(open('pyproject.toml', 'rb')); d = c['project']['optional-dependencies']; print('\n'.join(d['test'] + d['dev']))" \
77-
| $(PYTHON) -m pip install $(PIP_INSTALL_ARGS) -r /dev/stdin
75+
"import tomllib, subprocess, sys; c = tomllib.load(open('pyproject.toml', 'rb')); d = c['project']['optional-dependencies']; subprocess.check_call([sys.executable, '-m', 'pip', 'install'] + '$(PIP_INSTALL_ARGS)'.split() + d['test'] + d['dev'])"
7876

7977
install-git-hooks: ## Install GIT pre-commit hook.
8078
ln -sf ../../scripts/internal/git_pre_commit.py .git/hooks/pre-commit

0 commit comments

Comments
 (0)