MCPcopy Index your code
hub / github.com/saltstack/salt / package_python_version

Method package_python_version

tests/support/pkg.py:986–991  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

984 self._check_retcode(ret)
985
986 def package_python_version(self):
987 return self.proc.run(
988 str(self.binary_paths["python"][0]),
989 "-c",
990 "import sys; print('{}.{}'.format(*sys.version_info))",
991 ).stdout.strip()
992
993 def install(self, upgrade=False, downgrade=False, stop_services=True):
994 self._install_pkgs(upgrade=upgrade, downgrade=downgrade)

Callers 4

test_salt_upgradeFunction · 0.80

Calls 1

runMethod · 0.45

Tested by 4

test_salt_upgradeFunction · 0.64