diff options
-rw-r--r-- | setuptools/tests/test_develop.py | 4 | ||||
-rw-r--r-- | setuptools/tests/test_namespaces.py | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py index ad7cfa05..cb4ff4b4 100644 --- a/setuptools/tests/test_develop.py +++ b/setuptools/tests/test_develop.py @@ -167,7 +167,9 @@ class TestNamespaces: target = tmpdir / 'packages' # use pip to install to the target directory install_cmd = [ - 'pip', + sys.executable, + '-m', + 'pip.__main__', 'install', str(pkg_A), '-t', str(target), diff --git a/setuptools/tests/test_namespaces.py b/setuptools/tests/test_namespaces.py index 721cad1e..1ac1b35e 100644 --- a/setuptools/tests/test_namespaces.py +++ b/setuptools/tests/test_namespaces.py @@ -30,7 +30,9 @@ class TestNamespaces: targets = site_packages, path_packages # use pip to install to the target directory install_cmd = [ - 'pip', + sys.executable, + '-m', + 'pip.__main__', 'install', str(pkg_A), '-t', str(site_packages), @@ -38,7 +40,9 @@ class TestNamespaces: subprocess.check_call(install_cmd) namespaces.make_site_dir(site_packages) install_cmd = [ - 'pip', + sys.executable, + '-m', + 'pip.__main__', 'install', str(pkg_B), '-t', str(path_packages), @@ -88,7 +92,9 @@ class TestNamespaces: target = tmpdir / 'packages' # use pip to install to the target directory install_cmd = [ - 'pip', + sys.executable, + '-m', + 'pip.__main__', 'install', str(pkg_A), '-t', str(target), |