File: //usr/local/lib/python3.10/dist-packages/virtualenv/__pycache__/__main__.cpython-310.pyc
o
3�h� � @ sz d dl mZ d dlZd dlZd dlZd dlZd dlmZ e�e �Z
ddd�ZG dd� d�Zddd �Z
e d
kr;e
� dS dS )
� )�annotationsN)�
default_timerc
C s� |d u rt jn|}t� }ddlm} ddlm} | d u r#tjdd � } z|| ||�}t �
t||�� W d S |yc } z#td|j
� d|j� �� t|jtjdd� t|jtjdd� t|j��d }~w ty| } z|jtjkrwtd 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�startr r �session� exception� r$ �>/usr/local/lib/python3.10/dist-packages/virtualenv/__main__.py�run s0
����r&