| Server IP : 217.160.0.135 / Your IP : 216.73.216.73 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/virtualenv/run/__pycache__/ |
Upload File : |
�
�h�cf � �� � d dl Z d dlZd dlmZ ddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ dd lmZ d
dlmZ d
dlmZ d
d
lmZ d
dlmZ dd�Zdd�Zdd�Zdd�Zd� Zd� Zd� Zd� Z ddgZ!dS )� N)�partial� )�
make_app_data)�VirtualEnvConfigParser)�LEVELS�setup_report)�Session)�manual_upgrade)�__version__� )�ActivationSelector)�CreatorSelector)�get_discover)�SeederSelectorTc � � |�t j n|}t | |||� � }|5 |� � � ddd� � n# 1 swxY w Y |S )a�
Create a virtual environment given some command line interface arguments.
:param args: the command line arguments
:param options: passing in a ``VirtualEnvOptions`` object allows return of the parsed options
:param setup_logging: ``True`` if setup logging handlers, ``False`` to use handlers already registered
:param env: environment variables to use
:return: the session object of the creation (its structure for now is experimental and might change on short notice)
N)�os�environ�session_via_cli�run)�args�options�
setup_logging�env�
of_sessions �9/usr/lib/python3/dist-packages/virtualenv/run/__init__.py�cli_runr s� � � ��"�*�*��C� ��w�
�s�C�C�J� � � �������� � � � � � � � � � ���� � � � ��s �A�A
�
A
c � �� |�t j n|}t | �||� � \ }}|� | � � �t �fd�|D � � � � \ }}}t �j �j |j |||� � } | S )aq
Create a virtualenv session (same as cli_run, but this does not perform the creation). Use this if you just want to
query what the virtual environment would look like, but not actually create it.
:param args: the command line arguments
:param options: passing in a ``VirtualEnvOptions`` object allows return of the parsed options
:param setup_logging: ``True`` if setup logging handlers, ``False`` to use handlers already registered
:param env: environment variables to use
:return: the session object of the creation (its structure for now is experimental and might change on short notice)
Nc 3 �B �K � | ]}|� �� � V � �d S �N)�create)�.0�er s �r � <genexpr>z"session_via_cli.<locals>.<genexpr>0 s/ �� � � �'L�'L�a�����(9�(9�'L�'L�'L�'L�'L�'L� ) r r �build_parser�
parse_args�tupler � verbosity�app_data�_interpreter)
r r r r �parser�elements�creator�seeder�
activatorsr s
` r r r "