AlkantarClanX12

Your IP : 18.118.28.217


Current Path : /opt/alt/python35/lib64/python3.5/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/__pycache__/versionpredicate.cpython-35.opt-2.pyc



���]�@s�ddlZddlZddlZejdej�Zejd�Zejd�Zdd�Z	dej
dejd	ejd
ej
dejdejiZGd
d�d�Zdadd�ZdS)�Nz'(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)z^\s*\((.*)\)\s*$z%^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$cCsMtj|�}|s%td|��|j�\}}|tjj|�fS)Nz"bad package restriction syntax: %r)�re_splitComparison�match�
ValueError�groups�	distutils�version�
StrictVersion)�pred�res�compZverStr�r�5/opt/alt/python35/lib64/python3.5/versionpredicate.py�splitUps
r�<z<=z==�>z>=z!=c@s4eZdZdd�Zdd�Zdd�ZdS)�VersionPredicatecCs�|j�}|std��tj|�}|sCtd|��|j�\|_}|j�}|r�tj|�}|s�td|��|j�d}dd�|jd�D�|_|js�td|��n	g|_dS)	Nzempty package restrictionzbad package name in %rzexpected parenthesized list: %rrcSsg|]}t|��qSr)r)�.0ZaPredrrr
�
<listcomp>ts	z-VersionPredicate.__init__.<locals>.<listcomp>�,zempty parenthesized list in %r)	�stripr�re_validPackagerr�name�re_paren�splitr	)�selfZversionPredicateStrrZparen�strrrr
�__init__`s$	
zVersionPredicate.__init__cCsF|jr;dd�|jD�}|jddj|�dS|jSdS)NcSs*g|] \}}|dt|��qS)� )r)r�cond�verrrr
r}s	z,VersionPredicate.__str__.<locals>.<listcomp>z (z, �))r	r�join)r�seqrrr
�__str__{s	zVersionPredicate.__str__cCs5x.|jD]#\}}t|||�s
dSq
WdS)NFT)r	�compmap)rrrrrrr
�satisfied_by�szVersionPredicate.satisfied_byN)�__name__�
__module__�__qualname__rr#r%rrrr
rsArcCs�tdkr!tjdtj�a|j�}tj|�}|sRtd|��|jd�pdd}|rtj	j
|�}|jd�|fS)Nz=([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$z"illegal provides specification: %r��)�
_provision_rx�re�compile�ASCIIrrr�grouprrr)�value�mrrrr
�split_provision�sr2)r,Zdistutils.versionr�operatorr-r.rrrr�lt�le�eq�gt�ge�ner$rr+r2rrrr
�<module>s	!n