diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-09-29 15:27:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-29 15:27:34 +0100 |
commit | f443d77addf998ed760523faf76111686cc10367 (patch) | |
tree | 832cba6a0c3822e8619d45338498620f1fe75a01 | |
parent | 651f97af37171b03b7181208d820c3a925961e13 (diff) | |
parent | 7ea8086d35b6e072c8deae6de54c55f0582161e0 (diff) | |
download | python-setuptools-git-f443d77addf998ed760523faf76111686cc10367.tar.gz |
Merge pull request #1155 from hroncok/python-m-pip
Tests: Run `python -m pip` instead of plain `pip`
-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), |