@@ -85,7 +85,7 @@ setenv =
8585 VIRTUALENV_SETUPTOOLS =75.3.2
8686 PIP_EXTRA_INDEX_URL =https://pypi.python.org/simple
8787deps = {[base]deps}
88- install_command = {[tox]pip_command} install {opts} {packages} --cache-dir {tox_root}/../.tox_pip_cache_{envname}
88+ install_command = python -m {[tox]pip_command} install {opts} {packages} --cache-dir {tox_root}/../.tox_pip_cache_{envname}
8989commands =
9090 python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir}
9191 pytest {[pytest]default_args} {posargs} {tox_root}
@@ -107,8 +107,8 @@ setenv =
107107deps =
108108 -rdev_requirements.txt
109109commands =
110- {[tox]pip_command} install pylint =={[testenv:pylint]pylint_version}
111- {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
110+ python -m {[tox]pip_command} install pylint =={[testenv:pylint]pylint_version}
111+ python -m {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
112112 python {repository_root}/eng/tox/create_package_and_install.py \
113113 -d {envtmpdir}/dist \
114114 -p {tox_root} \
@@ -132,8 +132,8 @@ deps =
132132 -rdev_requirements.txt
133133 PyGitHub>=1.59.0
134134commands =
135- {[tox]pip_command} install pylint =={[testenv:next-pylint]pylint_version}
136- {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
135+ python -m {[tox]pip_command} install pylint =={[testenv:next-pylint]pylint_version}
136+ python -m {[tox]pip_command} install azure-pylint-guidelines-checker ==0.5.6 --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
137137 python {repository_root}/eng/tox/create_package_and_install.py \
138138 -d {envtmpdir}/dist \
139139 -p {tox_root} \
@@ -288,10 +288,10 @@ setenv =
288288 {[testenv]setenv}
289289 PROXY_URL =http://localhost:5004
290290commands =
291- - {[tox]pip_command} uninstall aiohttp --yes
291+ - python -m {[tox]pip_command} uninstall aiohttp --yes
292292 python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir}
293293 python {repository_root}/eng/tox/try_import.py aiohttp -p {tox_root}
294- {[tox]pip_command} freeze
294+ python -m {[tox]pip_command} freeze
295295 pytest {[pytest]default_args} --ignore-glob =' *async*.py' {posargs} --no-cov {tox_root}
296296
297297
@@ -313,7 +313,7 @@ commands =
313313 -p {tox_root} \
314314 -w {envtmpdir} \
315315 --package-type sdist
316- {[tox]pip_command} freeze
316+ python -m {[tox]pip_command} freeze
317317 pytest {posargs} --no-cov {[pytest]ignore_args} {tox_root}
318318
319319
@@ -396,12 +396,12 @@ setenv =
396396deps =
397397 {[packaging]pkgs}
398398commands =
399- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
399+ python -m {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
400400 python {repository_root}/eng/tox/create_package_and_install.py \
401401 -d {envtmpdir} \
402402 -p {tox_root} \
403403 -w {envtmpdir}
404- {[tox]pip_command} freeze
404+ python -m {[tox]pip_command} freeze
405405 python {repository_root}/eng/tox/import_all.py -t {tox_root}
406406
407407
@@ -415,7 +415,7 @@ setenv =
415415deps =
416416 {[packaging]pkgs}
417417commands =
418- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
418+ python -m {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
419419 python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} --skip-install True
420420 python {repository_root}/eng/tox/verify_whl.py -d {envtmpdir} -t {tox_root}
421421
@@ -429,7 +429,7 @@ setenv =
429429deps =
430430 {[packaging]pkgs}
431431commands =
432- {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
432+ python -m {[tox]pip_command} install {repository_root}/tools/azure-sdk-tools --no-deps
433433 python {tox_root}/setup.py --q sdist -d {envtmpdir}
434434 python {repository_root}/eng/tox/verify_sdist.py -d {envtmpdir} -t {tox_root}
435435
@@ -450,7 +450,7 @@ commands =
450450commands =
451451 python {repository_root}/eng/tox/install_depend_packages.py -t {tox_root} -d {env:DEPENDENCY_TYPE:} -w {envtmpdir}
452452 python {repository_root}/eng/tox/create_package_and_install.py -d {envtmpdir} -p {tox_root} -w {envtmpdir} --pre-download-disabled
453- {[tox]pip_command} freeze
453+ python -m {[tox]pip_command} freeze
454454 python {repository_root}/eng/tox/verify_installed_packages.py --packages-file {envtmpdir}/packages.txt
455455 pytest {[pytest]default_args} {posargs} --no-cov {tox_root}
456456
@@ -499,8 +499,8 @@ deps =
499499 {[base]deps}
500500commands =
501501 # install API stub generator
502- {[tox]pip_command} install -r {repository_root}/eng/apiview_reqs.txt --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/" --index-strategy =unsafe-best-match
503- {[tox]pip_command} freeze
502+ python -m {[tox]pip_command} install -r {repository_root}/eng/apiview_reqs.txt --index-url =" https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/" --index-strategy =unsafe-best-match
503+ python -m {[tox]pip_command} freeze
504504 python {repository_root}/eng/tox/run_apistubgen.py -t {tox_root} -w {envtmpdir} {posargs}
505505
506506
@@ -516,7 +516,7 @@ setenv =
516516deps =
517517 {[base]deps}
518518commands =
519- {[tox]pip_command} freeze
519+ python -m {[tox]pip_command} freeze
520520 python {repository_root}/eng/tox/run_bandit.py -t {tox_root}
521521
522522
@@ -533,7 +533,7 @@ deps =
533533 {[base]deps}
534534 subprocess32; python_version < '3.5'
535535commands =
536- {[tox]pip_command} freeze
536+ python -m {[tox]pip_command} freeze
537537 python {repository_root}/scripts/devops_tasks/test_run_samples.py -t {tox_root}
538538
539539
@@ -599,5 +599,5 @@ setenv =
599599 {[testenv]setenv}
600600 PROXY_URL =http://localhost:5018
601601commands =
602- {[tox]pip_command} install {toxinidir}/../../../tools/azure-sdk-tools[build]
602+ {envbindir}/python -m { [tox]pip_command} install {toxinidir}/../../../tools/azure-sdk-tools[build]
603603 python {repository_root}/eng/tox/run_optional.py -t {toxinidir} --temp ={envtmpdir} {posargs}
0 commit comments