_i . d dl mZ d dlZd dlZd dlZd dlmc mZ d dl Z ddl
mZmZ ej Z
G d dej Zej j D cg c] } | d ej vs| c} ej z e_ yc c} w ) )DistutilsArgErrorN )SetuptoolsDeprecationWarningSetuptoolsWarningc e Zd ZdZej
j ddgz Zej
j ddgz Zdd fdd fgZ e e Z
d
Zd Zd Z
d
Zed Zd Zy)installz7Use easy_install to install the package, w/dependencies)old-and-unmanageableNzTry not to use this!)!single-version-externally-managedNz5used by system package builders to create 'flat' eggsr r
install_egg_infoc yNT selfs /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/install.pyzinstall. s $ install_scriptsc yr
r r s r r zinstall. s r c t j ddd t j j | d | _ d | _ y )Nzsetup.py install is deprecated.z
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
zAhttps://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html)see_url)r emitorigr initialize_optionsold_and_unmanageable!single_version_externally_managedr s r r zinstall.initialize_options$ sB $))-
X
''-$(!15.r c t j j | | j rd| _ y | j r%| j s| j
st
d y y y )NTzAYou must specify --record or --root when building system packages)r r finalize_optionsrootr recordr r s r r zinstall.finalize_options6 sW %%d+9959D2
3
399T[[' &19 4r c | j s| j rt j j | S d | _ d| _ y )N )r r r r handle_extra_path path_file
extra_dirsr s r r# zinstall.handle_extra_pathA s6 99>><<11$77 r c | j s| j rt j j | S | j t
j s t j j | y | j y )N) r r r r run_called_from_setupinspectcurrentframedo_egg_installr s r r' zinstall.runK s] $$(N(N<<##D))&&w';';'=>LLT"!r c | Fd}t j | t j dk( rd}t j | yt j
| }|dd D ]f }|dd \ }t j | }|j j d d
}|dk( r|j dk( rP|d
k( xr |j dk( c S y)a
Attempt to detect whether run() was called from setup() or by another
command. If called by setup(), the parent caller will be the
'run_command' method in 'distutils.dist', and *its* caller will be
the 'run_commands' method. If called any other way, the
immediate caller *might* be 'run_command', but it won't have been
called by 'run_commands'. Return True in that case or if a call stack
is unavailable. Return False otherwise.
Nz4Call stack not available. bdist_* commands may fail.
IronPythonz6For best results, pass -X:Frames to enable call stack.Tr __name__r" zsetuptools.distrun_commandzdistutils.distrun_commands)
r r platformpython_implementationr) getouterframesgetframeinfo f_globalsgetfunction) run_framemsgframesframecallerinfo
caller_modules r r( zinstall._called_from_setupV s HC""3'--/<?N!&&s+'' 2Aa[Ebq IV''/D",,00R@M 11dmm}6T $44X.9XX !r c . | j j d } || j d| j | j }|j d|_ |j j t j d | j d | j j d j g}t j r |j dt j ||_ |j! d d t _
y )
Neasy_installx)argsr r .z*.egg bdist_eggr F)show_deprecation)distributionget_command_classr r ensure_finalizedalways_copy_from
package_indexscanglobr1 get_command_obj
egg_output
setuptoolsbootstrap_install_frominsertrD r' )r rB cmdrD s r r+ zinstall.do_egg_installu s ((::>J;;
" tyy12%!!11+>IIJ,,KK:<<=',0
)r N)r0
__module____qualname____doc__r r user_optionsboolean_optionsnew_commandsdict_ncr r r# r' staticmethodr( r+ r r r r r s A<<,,>
0 L ll22+6 O
./ -.L |
C6$ " Y Y<1r r )distutils.errorsr r) rN r3 distutils.command.installcommandr r rQ warningsr r _installsub_commandsr\ rZ )rT s 0r rd s . ( ( F <<~1dll ~1F <<,,,CAgkk0IC, s !B8B