Fix pip and python binary for classic macos packages

This commit is contained in:
MKLeb 2023-08-31 13:27:40 -04:00 committed by Pedro Algarvio
parent 688378fdfb
commit 588ff0eb62

View file

@ -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():