ӷC d Z ddlZddlZddlZ ddlmZ n# e$ r ddlmZ Y nw xY wg dZ G d d Z G d d Z G d d
Z
ej dk re ZdS ej dk re
ZdS dS )
zq
Helper functions for interacting with the shell, and consuming shell-style
parameters provided in config files.
Nquote)
WindowsParserPosixParserNativeParserc > e Zd ZdZed Zed ZdS )CommandLineParsera
An object that knows how to split and join command-line arguments.
It must be true that ``argv == split(join(argv))`` for all ``argv``.
The reverse neednt be true - `join(split(cmd))` may result in the addition
or removal of unnecessary escaping.
c t )z5 Join a list of arguments into a command line string NotImplementedErrorargvs p/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/distutils/_shell_utils.pyjoinzCommandLineParser.join
"! c t )z6 Split a command line string into a list of arguments r cmds r splitzCommandLineParser.split r r N__name__
__module____qualname____doc__staticmethodr r r r r r sT " " \" " " \" " "r r c > e Zd ZdZed Zed ZdS )r z
The parsing behavior used by `subprocess.call("string")` on Windows, which
matches the Microsoft C/C++ runtime.
Note that this is _not_ the behavior of cmd.
c * t j | S N)
subprocesslist2cmdliner
s r r zWindowsParser.join* s &t,,,r c dd l } |j n# t $ r t w xY w| sg S d| z } |j j j }| |j |_ |j | |j f|_
| } || | | fdt |j
D }|j j rJ |d dk sJ |dd S )Nr zdummy c g | ]
}| S r r ).0ilpargss r