mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pip and python binary for classic macos packages
This commit is contained in:
parent
688378fdfb
commit
588ff0eb62
1 changed files with 7 additions and 5 deletions
|
@ -342,12 +342,14 @@ class SaltPkgInstall:
|
|||
"ssh": [self.bin_dir / "salt-ssh"],
|
||||
"syndic": [self.bin_dir / "salt-syndic"],
|
||||
"spm": [self.bin_dir / "spm"],
|
||||
"python": [str(pathlib.Path("/usr/bin/python3"))],
|
||||
"python": [str(self.bin_dir / "python3")],
|
||||
"pip": [str(self.bin_dir / "pip3")],
|
||||
}
|
||||
self.binary_paths["pip"] = [str(pathlib.Path("/usr/bin/pip3"))]
|
||||
self.proc.run(
|
||||
*self.binary_paths["pip"], "install", "-U", "pyopenssl"
|
||||
)
|
||||
else:
|
||||
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