K# d dl Z d dlZd dlZd dlmZ ddlmZ ddlmZ ddl m
Z
G d de Zdd Zdd
Z
d Z G d d
Zd Zd Z G d de Zg dZdS ) N)IS_WIN )Discover)
PythonInfo)
PythonSpecc @ e Zd Z fdZed Zd Zd Z xZS )Builtinc t | |j r|j nt j g| _ |j | _ |j | _ d S N)super__init__pythonsys
executablepython_specapp_datatry_first_with)selfoptions __class__s n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/virtualenv/discovery/builtin.pyr
zBuiltin.__init__
sP
!!!-4^Q7>>#.AQ(
%4 c
| ddddt dg d | dd d
t dg d d S )Nz-pz--pythonr pyappendzinterpreter based on what to create environment (path/identifier) - by default use the interpreter where the tool is installed - first found wins)destmetavartypeactiondefaulthelpz--try-first-withr py_exez:try first these interpreters before starting the discovery)add_argumentstr)clsparsers r add_parser_argumentszBuiltin.add_parser_arguments sx ^
!M
r c h | j D ])}t || j | j | j }||c S *d S r )r get_interpreterr r _env)r r results r runzBuiltin.run* sI + K$[$2Et}VZV_``F!
"tr c | t | j dk r
| j d n| j }| j j d|S )Nr r z discover of python_spec=)lenr r __name__)r specs r __repr__zBuiltin.__repr__1 sE &)$*:&;&;q&@&@t""dFV.)LLDLLLr ) r/
__module____qualname__r
classmethodr' r, r1
__classcell__)r s @r r r sx 5 5 5 5 5
[
, M M M M M M Mr r c t j | }t j d| t }|t
j n|}t |||| D ]l\ }}|j |f} | |v rt j d| | || rt j
d| |c S | | md S )Nzfind interpreter for spec %rzproposed %szaccepted %s)r from_string_speclogginginfosetosenvironpropose_interpreterssystem_executable satisfiesdebugadd)keyr r envr0 proposed_pathsinterpreterimpl_must_matchs r r) r) 6 s &s++DL/666UUN"**C(