summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_namespaces.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-11-09 20:16:07 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-11-09 20:16:07 -0500
commit76fefe982d4445248c1933030619eedc764e695b (patch)
treede1507d2944422d2f75e716429c0d2fcae387035 /setuptools/tests/test_namespaces.py
parenta5add17b554709e6b808e85a9cdbb1785717d2d5 (diff)
parentff9bc4902f32c331d917e8bae9136607e48c2738 (diff)
downloadpython-setuptools-git-76fefe982d4445248c1933030619eedc764e695b.tar.gz
Merge branch 'master' into pr1145
Diffstat (limited to 'setuptools/tests/test_namespaces.py')
-rw-r--r--setuptools/tests/test_namespaces.py12
1 files changed, 9 insertions, 3 deletions
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),