OwlCyberSecurity - MANAGER
Edit File: install_lib.cpython-39.opt-2.pyc
a ����?�g� ����������������������@���sH���d�dl�Z�d�dlZd�dlZd�dlmZ�d�dlmZ�dZG�dd��de�Z dS�)�����N)�Command)�DistutilsOptionErrorz.pyc�������������������@���sx���e�Zd�ZdZg�d�Zg�d�ZddiZdd��Zdd ��Zd d��Z dd ��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��ZdS�)�install_libz7install all Python modules (extensions and pure Python)))zinstall-dir=�dzdirectory to install to)z build-dir=�bz'build directory (where to install from))�force�fz-force installation (overwrite existing files))�compile�czcompile .py to .pyc [default])� no-compileNzdon't compile .py files)z optimize=�Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])� skip-buildNzskip the build steps)r���r ���r ���r���r ���c�����������������C���s(���d�|�_�d�|�_d|�_d�|�_d�|�_d�|�_d�S�)Nr���)�install_dir� build_dirr���r ����optimize� skip_build��self��r����B/opt/alt/python39/lib64/python3.9/distutils/command/install_lib.py�initialize_options3���s����zinstall_lib.initialize_optionsc�������������� ���C���s����|���ddddddd��|�jd�u�r&d|�_|�jd�u�r6d |�_t|�jt�s�zt|�j�|�_|�jd vr^t�W�n�ttfy~���td��Y�n0�d�S�)N�install)� build_libr���)r���r���)r���r���)r ���r ���)r���r���)r���r���TF)r�����������zoptimize must be 0, 1, or 2)Zset_undefined_optionsr ���r���� isinstance�int�AssertionError� ValueErrorr���r���r���r���r����finalize_options<���s&����� zinstall_lib.finalize_optionsc�����������������C���s0���|������|����}|d�ur,|�j���r,|��|��d�S��N)�buildr����distribution�has_pure_modules�byte_compile�r���Zoutfilesr���r���r����runV���s����zinstall_lib.runc�����������������C���s2���|�j�s.|�j���r|��d��|�j���r.|��d��d�S��N�build_py� build_ext)r���r"���r#���Zrun_command�has_ext_modulesr���r���r���r���r!���f���s ���� zinstall_lib.buildc�����������������C���s8���t�j�|�j�r |��|�j|�j�}n|��d|�j���d�S�|S�)Nz3'%s' does not exist -- no Python modules to install)�os�path�isdirr���Z copy_treer����warnr%���r���r���r���r���m���s�����zinstall_lib.installc�����������������C���sr���t�jr|��d��d�S�ddlm}�|��d�j}|�jrH||d|�j||�j d��|�j dkrn|||�j |�j||�j|�j d��d�S�)Nz%byte-compiling is disabled, skipping.r���)r$���r���)r���r����prefix�dry_run)r���r���r/����verboser0���)�sys�dont_write_bytecoder.���Zdistutils.utilr$����get_finalized_command�rootr ���r���r0���r���r1���)r����filesr$���Zinstall_rootr���r���r���r$���v���s���� � �zinstall_lib.byte_compilec����������� ��� ���C���sd���|sg�S�|���|�}|���}t||�}t|�ttj��}g�}|D�] } |�tj�|| |d������q>|S�r ���) r4����get_outputs�getattr�lenr+����sep�appendr,����join) r���Zhas_anyZ build_cmdZ cmd_optionZ output_dirZbuild_filesr���� prefix_lenZoutputs�filer���r���r����_mutate_outputs����s���� zinstall_lib._mutate_outputsc�����������������C���sr���g�}|D�]d}t�j�t�j�|��d�}|tkr.q|�jrJ|�tjj |dd���|�j dkr|�tjj ||�j d���q|S�)Nr�����)�optimizationr���)r+���r,����splitext�normcase�PYTHON_SOURCE_EXTENSIONr ���r;���� importlib�util�cache_from_sourcer���)r���Zpy_filenamesZbytecode_filesZpy_fileZextr���r���r����_bytecode_filenames����s���� � � zinstall_lib._bytecode_filenamesc�����������������C���sR���|���|�j���dd|�j�}|�jr*|��|�}ng�}|���|�j���dd|�j�}||�|�S�)Nr(���r���r)���)r?���r"���r#���r���r ���rH���r*���)r���Zpure_outputsZbytecode_outputsZext_outputsr���r���r���r7�������s��������zinstall_lib.get_outputsc�����������������C���sL���g�}|�j����r&|��d�}|�|�����|�j����rH|��d�}|�|�����|S�r'���)r"���r#���r4����extendr7���r*���)r���Zinputsr(���r)���r���r���r���� get_inputs����s���� zinstall_lib.get_inputsN)�__name__� __module__�__qualname__ZdescriptionZuser_optionsZboolean_optionsZnegative_optr���r���r&���r!���r���r$���r?���rH���r7���rJ���r���r���r���r���r������s��� r���) r+����importlib.utilrE���r2���Zdistutils.corer���Zdistutils.errorsr���rD���r���r���r���r���r����<module>���s���