0x1949 Team - FAZEMRX - MANAGER
Edit File: depends.cpython-310.pyc
o �_�a{ � @ s� d dl Z d dlZd dlZd dlZd dlmZ ddlmZmZm Z m Z ddlmZ g d�ZG dd� d�Z d d � Zddd �Zddd�Zdd� Ze� dS )� N)�version� )�find_module�PY_COMPILED� PY_FROZEN� PY_SOURCE)�_imp)�Requirer �get_module_constant�extract_constantc @ sL e Zd ZdZ ddd�Zdd� Zdd � Zddd�Zdd d�Zddd�Z dS )r z7A prerequisite to building or installing a distribution� Nc C sH |d u r|d urt j}|d ur||�}|d u rd}| j�t� � | `d S )N�__version__)r �Version�__dict__�update�locals�self)r �name�requested_version�module�homepage� attribute�format� r �4/usr/lib/python3/dist-packages/setuptools/depends.py�__init__ s zRequire.__init__c C s | j dur d| j| j f S | jS )z0Return full package/distribution name, w/versionNz%s-%s)r r )r r r r � full_name# s zRequire.full_namec C s0 | j du p| jdu pt|�dko| �|�| jkS )z%Is 'version' sufficiently up-to-date?N�unknown)r r �strr )r r r r r � version_ok) s �zRequire.version_okr c C s~ | j du r"zt| j|�\}}}|r|�� |W S ty! Y dS w t| j| j ||�}|dur=||ur=| jdur=| �|�S |S )a� Get version number of installed module, 'None', or 'default' Search 'paths' for module. If not found, return 'None'. If found, return the extracted version attribute, or 'default' if no version attribute was specified, or the value cannot be determined without importing the module. The version is formatted according to the requirement's version format (if any), unless it is 'None' or the supplied 'default'. N)r r r �close�ImportErrorr r )r �paths�default�f�p�i�vr r r �get_version. s � zRequire.get_versionc C s | � |�duS )z/Return true if dependency is present on 'paths'N)r( )r r"