Commit f443d77a authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #1155 from hroncok/python-m-pip

Tests: Run `python -m pip` instead of plain `pip`
parents 651f97af 7ea8086d
...@@ -167,7 +167,9 @@ class TestNamespaces: ...@@ -167,7 +167,9 @@ class TestNamespaces:
target = tmpdir / 'packages' target = tmpdir / 'packages'
# use pip to install to the target directory # use pip to install to the target directory
install_cmd = [ install_cmd = [
'pip', sys.executable,
'-m',
'pip.__main__',
'install', 'install',
str(pkg_A), str(pkg_A),
'-t', str(target), '-t', str(target),
......
...@@ -30,7 +30,9 @@ class TestNamespaces: ...@@ -30,7 +30,9 @@ class TestNamespaces:
targets = site_packages, path_packages targets = site_packages, path_packages
# use pip to install to the target directory # use pip to install to the target directory
install_cmd = [ install_cmd = [
'pip', sys.executable,
'-m',
'pip.__main__',
'install', 'install',
str(pkg_A), str(pkg_A),
'-t', str(site_packages), '-t', str(site_packages),
...@@ -38,7 +40,9 @@ class TestNamespaces: ...@@ -38,7 +40,9 @@ class TestNamespaces:
subprocess.check_call(install_cmd) subprocess.check_call(install_cmd)
namespaces.make_site_dir(site_packages) namespaces.make_site_dir(site_packages)
install_cmd = [ install_cmd = [
'pip', sys.executable,
'-m',
'pip.__main__',
'install', 'install',
str(pkg_B), str(pkg_B),
'-t', str(path_packages), '-t', str(path_packages),
...@@ -88,7 +92,9 @@ class TestNamespaces: ...@@ -88,7 +92,9 @@ class TestNamespaces:
target = tmpdir / 'packages' target = tmpdir / 'packages'
# use pip to install to the target directory # use pip to install to the target directory
install_cmd = [ install_cmd = [
'pip', sys.executable,
'-m',
'pip.__main__',
'install', 'install',
str(pkg_A), str(pkg_A),
'-t', str(target), '-t', str(target),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment