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/__pycache__/__main__.cpython-310.pyc
o

3�h��@szddlmZddlZddlZddlZddlZddlmZe�e	�Z
ddd�ZGdd�d�Zddd	�Z
e	d
kr;e
�dSdS)
�)�annotationsN)�
default_timerc
Cs�|durtjn|}t�}ddlm}ddlm}|dur#tjdd�}z||||�}t	�
t||��WdS|yc}z#td|j
�d|j���t|jtjdd�t|jtjdd�t|j��d}~wty|}z|jtjkrwtd	tjd
��d}~ww)Nr)�cli_run)�ProcessCallFailedError�zsubprocess call failed for z with code �)�file�endz�OSError: [Errno 24] Too many open files. You may need to increase your OS open files limit.
  On macOS/Linux, try 'ulimit -n 2048'.
  For Windows, this is not a common issue, but you can try to close some applications.)r)�os�environr�virtualenv.runr�virtualenv.util.errorr�sys�argv�LOGGER�warning�
LogSession�print�cmd�code�out�stdout�err�stderr�
SystemExit�OSError�errno�EMFILE)�args�options�env�startrr�session�	exception�r$�>/usr/local/lib/python3.10/dist-packages/virtualenv/__main__.py�runs0
����r&c@s eZdZd	dd�Zd
dd�ZdS)r�return�NonecCs||_||_dS�N)r"r!)�selfr"r!r$r$r%�__init__(s
zLogSession.__init__�strcCs�|jjjj}t�|jd}d|�d|d�d�d|jj��g}|jjjrI|�d|jj���|jjj	�
�}tdd	�|D��}|�d
d�|����|jj
r_|�dd
�dd	�|jj
D�����d�|�S)Ni�zcreated virtual environment z in z.0f�msz
  creator z	  seeder css,�|]}|jdkrd�|j�d��VqdS)z
.dist-infoz==�-N)�suffix�join�stem�split��.0�ir$r$r%�	<genexpr>6s�*z%LogSession.__str__.<locals>.<genexpr>z    added seed packages: z, z
  activators �,css�|]}|jjVqdSr))�	__class__�__name__r3r$r$r%r6:s��
)r"�creator�interpreter�specrr!�seeder�enabled�append�purelib�iterdir�sortedr0�
activators)r*r=�elapsed�lines�path�packagesr$r$r%�__str__,s�
$
zLogSession.__str__N)r'r()r'r,)r9�
__module__�__qualname__r+rIr$r$r$r%r's
rcCs�ddlm}|dur
tjn|}|�}z	t|||�WdStttfys}zIz6t|dd�r.�t	|t�r8|j
dksBt�dt
|�j|�t	|t�rJ|j
nd}t�|�WtjD]}|��qUntjD]}|��q`wWYd}~dSd}~ww)Nr)�VirtualEnvOptions�with_tracebackFz%s: %sr)�virtualenv.config.cli.parserrLr
rr&�KeyboardInterruptr�	Exception�getattr�
isinstancerr�error�typer9r�exit�handlers�flush)rr rLrr#r�handlerr$r$r%�run_with_catch>s(

�
���rY�__main__)NNN)NN)�
__future__rr�loggingr
r�timeitr�	getLoggerr9rr&rrYr$r$r$r%�<module>s



�