@@ -141,18 +141,10 @@ function is_yum {
141141 fi
142142}
143143
144- function get_python {
145- if is_dnf; then
146- echo python3.12
147- else
148- echo python3
149- fi
150- }
151-
152144function install_dependencies {
153145 echo " Installing package dependencies for kayobe"
154146 if is_dnf; then
155- sudo dnf -y install gcc git vim python3-devel python3-pyyaml libffi-devel python3.12-devel python3.12 python3.12-pyyaml
147+ sudo dnf -y install gcc git vim python3-devel python3-pyyaml libffi-devel
156148 elif is_yum; then
157149 echo " CentOS 7 is no longer supported"
158150 exit 1
@@ -174,7 +166,7 @@ function install_venv {
174166 fi
175167 if [[ ! -f " ${venv_path} /bin/activate" ]]; then
176168 echo " Creating virtual environment in ${venv_path} "
177- $( get_python ) -m venv " ${venv_path} "
169+ python3 -m venv " ${venv_path} "
178170 # NOTE: Virtualenv's activate and deactivate scripts reference an
179171 # unbound variable.
180172 set +u
@@ -200,9 +192,7 @@ function install_venv_system_site_packages {
200192 fi
201193 if [[ ! -f " ${venv_path} /bin/activate" ]]; then
202194 echo " Creating virtual environment in ${venv_path} "
203- # NOTE(wszumski): tenks doesn't currently support not using the system python
204- # interpreter with: "Failed to detect selinux python bindings"
205- /usr/bin/python3 -m venv --system-site-packages " ${venv_path} "
195+ python3 -m venv --system-site-packages " ${venv_path} "
206196 # NOTE: Virtualenv's activate and deactivate scripts reference an
207197 # unbound variable.
208198 set +u
@@ -228,9 +218,7 @@ function install_kayobe_dev_venv {
228218
229219function upgrade_kayobe_venv {
230220 echo " Upgrading kayobe virtual environment in ${KAYOBE_VENV_PATH} "
231- # NOTE(wszumski): We need to recreate the old virtualenv to switch to python3.12
232- rm -rf " ${KAYOBE_VENV_PATH} "
233- $( get_python) -m venv " ${KAYOBE_VENV_PATH} "
221+ python3 -m venv " ${KAYOBE_VENV_PATH} "
234222 # NOTE: Virtualenv's activate and deactivate scripts reference an
235223 # unbound variable.
236224 set +u
0 commit comments