jo z d dl mZ d dl mZ d dl mZ d dlZd dlmZ ddlmZm Z m Z mZmZm Z G d d e ZdS ) )print_function)division)absolute_importN)BasePkgManager )scan_python_versionsis_major_version CONFIG_DIRcreate_config_dirs ALT_NAMESALT_PYTHON_PREFIXc e Zd ZdZd ZeZdZeZ dZ d ede de g Zd ede de g Z d Zd Zd Zd Zd Zd Zed ZdS ) PkgManagerz Class responsible for all interactions with Yum, python version installation/removal and gathering info about already installed versions c " t d S N)r selfs Y/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpython/pkgmanager.py_create_config_dirszPkgManager._create_config_dirs s z)LANG=C yum --disableplugin=fastestmirror z!&>/var/log/cl-python-last-yum.log z-y install z{} z -y remove c t S r )r r s r _scan_interpreter_versionsz%PkgManager._scan_interpreter_versions? s #%%%r c d t d | dd z S )Nz{}/.lock.r )r formatreplacer versions r _get_lock_file_pathzPkgManager._get_lock_file_pathB s2 :#4#4OOC$$$&