관리-도구
편집 파일: python_manager.cpython-37.pyc
B �v6d � @ st d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dlmZ ddl m Z dd lmZ dZ G d d� de�ZdS )� )�absolute_import)�print_function)�divisionN)�BaseSelectorManager)�imunify_python_dependency� )�PythonConfig)� PkgManagerc s4 e Zd ZdZd� fdd� Zed�� fdd�Z� ZS ) � PythonManagerz5Responsible for actual python selector high-level APINc s, |pt � }|pt|�}tt| ��||� d S )N)r r �superr �__init__)�self�cfg�pkg)� __class__� �W/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectpython/python_manager.pyr s zPythonManager.__init__)�versionc sP t jj� dt jj� �}d}||f}||ks6tt|��r@ddd�S tt| ��|�S )N�.z2.7�successz;This Python version is used by system and cannot be removed)�result�warning) �sys�version_info�major�minorr �strr r �uninstall_version)r r Zcur_system_versionZlegacy_system_versionZsystem_versions)r r r r s zPythonManager.uninstall_version)NN)�__name__� __module__�__qualname__�__doc__r r r � __classcell__r r )r r r s r )� __future__r r r r �&clselect.baseclselect.selector_managerr Zclselect.utilsr �configr � pkgmanagerr �API_1r r r r r �<module> s