mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix no pip binary for macos classic package tests
This commit is contained in:
parent
7003b5d168
commit
688378fdfb
1 changed files with 4 additions and 4 deletions
|
@ -326,10 +326,6 @@ class SaltPkgInstall:
|
|||
"python": [str(pathlib.Path("/usr/bin/python3"))],
|
||||
}
|
||||
if self.classic:
|
||||
self.binary_paths["pip"] = [str(pathlib.Path("/usr/bin/pip3"))]
|
||||
self.proc.run(
|
||||
*self.binary_paths["pip"], "install", "-U", "pyopenssl"
|
||||
)
|
||||
if platform.is_darwin():
|
||||
# `which` is not catching the right paths on downgrades, explicitly defining them here
|
||||
self.binary_paths = {
|
||||
|
@ -348,6 +344,10 @@ class SaltPkgInstall:
|
|||
"spm": [self.bin_dir / "spm"],
|
||||
"python": [str(pathlib.Path("/usr/bin/python3"))],
|
||||
}
|
||||
self.binary_paths["pip"] = [str(pathlib.Path("/usr/bin/pip3"))]
|
||||
self.proc.run(
|
||||
*self.binary_paths["pip"], "install", "-U", "pyopenssl"
|
||||
)
|
||||
else:
|
||||
self.binary_paths["python"] = [shutil.which("salt"), "shell"]
|
||||
if platform.is_darwin():
|
||||
|
|
Loading…
Add table
Reference in a new issue