M7D 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 ddZddZddZddZd Zd Zd Zd Z ddgZ!dS ) N)partial )
make_app_data)VirtualEnvConfigParser)LEVELSsetup_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)osenvironsession_via_clirun)argsoptions
setup_loggingenv
of_sessions i/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/virtualenv/run/__init__.pycli_runr s "**C w
sCCJ s AA
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).0er s r