Skip to content

Commit 34c76a6

Browse files
yuyantingzerocopybara-github
authored andcommitted
Update default python version on centos_stream9.
PiperOrigin-RevId: 885274805
1 parent 048c80c commit 34c76a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

perfkitbenchmarker/linux_virtual_machine.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,13 @@ class CentOsStream9Mixin(BaseRedHatMixin):
29172917

29182918
OS_TYPE = os_types.CENTOS_STREAM9
29192919

2920+
def PrepareVMEnvironment(self):
2921+
super().PrepareVMEnvironment()
2922+
self.Install('python')
2923+
self.RemoteCommand(
2924+
'sudo rm /usr/bin/python3; '
2925+
'sudo ln -s /usr/bin/python3.12 /usr/bin/python3')
2926+
29202927
def SetupPackageManager(self):
29212928
"""Install EPEL."""
29222929
# https://docs.fedoraproject.org/en-US/epel/#_centos_stream_9

0 commit comments

Comments
 (0)