HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/virtualenv/create/__pycache__/describe.cpython-310.pyc
o

3�hR�@s�ddlmZddlmZddlmZddlmZddlm	Z	Gdd�d�Z
Gdd	�d	e
e�ZGd
d�de
e�ZGdd
�d
e
e�Z
gd�ZdS)�)�annotations)�ABC)�OrderedDict)�Path)�IS_WINc@s�eZdZdZer
dndZd%dd�Zedd	��Zed
d��Z	edd
��Z
edd��Zedd��Zedd��Z
edd��Zedd��Zdd�Zedd��Zedd��Zedd��Zed d!��Zd"d#�Zd$S)&�Describez`Given a host interpreter tell us information about what the created interpreter might look like.z.exe��return�NonecCs(||_||_d|_d|_d|_d|_dS�N)�interpreter�dest�_stdlib�_stdlib_platform�_system_stdlib�
_conf_vars)�selfr
r�r�E/usr/local/lib/python3.10/dist-packages/virtualenv/create/describe.py�__init__s
zDescribe.__init__cCs|jSr)�
script_dir�rrrr�bin_dirszDescribe.bin_dircC�|j|j�d�S)N�scripts�r
r�install_pathrrrrr�zDescribe.script_dircCr)N�purelibrrrrrrrzDescribe.purelibcCr)N�platlibrrrrrr#rzDescribe.platlibcCs tt|jdf|jdff����Sr)�listrrr�keysrrrr�libs's z
Describe.libscC�(|jdurt|jjd|jd��|_|jS)N�stdlib��
config_var)rrr�sysconfig_path�_config_varsrrrrr$+�
zDescribe.stdlibcCr#)N�
platstdlibr%)rrrr'r(rrrr�stdlib_platform1r)zDescribe.stdlib_platformcCs|jdur|�|j�|_|jSr)r�_calc_config_varsr
rrrrr(7s
zDescribe._config_varscs �jj}��fdd�|��D�S)Ncs0i|]\}}||dur|��jj�r�n|�qSr)�
startswithr�prefix)�.0�k�v�r�torr�
<dictcomp>?s0z.Describe._calc_config_vars.<locals>.<dictcomp>)r�sysconfig_vars�items)rr3�sys_varsrr2rr,=szDescribe._calc_config_varscCsdS)z.Knows means it knows how the output will look.Tr��clsrrrr�can_describeA�zDescribe.can_describecCs|jjdS)N���)r
�partsrrrr�env_nameFszDescribe.env_namecCs|j|���|j��Sr)r�exe_stem�suffixrrrr�exeJ�zDescribe.execCst�)zcExecutable name without suffix - there seems to be no standard way to get this without creating it.)�NotImplementedError)r9rrrr?Nr;zDescribe.exe_stemcCs|j|�|j��Sr)rr@)r�namerrr�scriptSszDescribe.scriptN)r	r
)�__name__�
__module__�__qualname__�__doc__rr@r�propertyrrrrr"r$r+r(r,�classmethodr:r>rAr?rErrrrr
s<












rc� eZdZe�fdd��Z�ZS)�Python3Supportscs|jjdkot��|�S)N�)�version_info�major�superr:r8��	__class__rrr:XrBzPython3Supports.can_describe�rFrGrHrKr:�
__classcell__rrrRrrMW�rMcrL)�
PosixSupportsc�|jdko
t��|�S)N�posix��osrQr:r8rRrrr:^�zPosixSupports.can_describerTrrrRrrW]rVrWcrL)�WindowsSupportscrX)N�ntrZr8rRrrr:dr\zWindowsSupports.can_describerTrrrRrr]crVr])rrWrMr]N)�
__future__r�abcr�collectionsr�pathlibr�virtualenv.inforrrMrWr]�__all__rrrr�<module>sM