OwlCyberSecurity - MANAGER
Edit File: install.cpython-38.opt-2.pyc
U �����M�foh����������������������@���s��d�dl�Z�d�dlZd�dlmZ�d�dlmZ�d�dlmZ�d�dlm Z �d�dl mZ�d�dlm Z �d�dlmZmZmZ�d�d lmZ�d�d l mZ�d�dlmZ�d�dlmZ�d Zdddddd�Zdddddd�dddddd�ed�Ze�rdddddd�ed<�ddd d!dd�ed"<�dZG�d#d$��d$e�ZdS�)%�����N)�log)�Command)�DEBUG)�get_config_vars)�DistutilsPlatformError)� write_file)�convert_path� subst_vars�change_root)�get_platform)�DistutilsOptionError)� USER_BASE)� USER_SITETz$base/Lib/site-packagesz$base/Include/$dist_namez $base/Scriptsz$base)�purelib�platlib�headers�scripts�dataz/$base/lib/python$py_version_short/site-packagesz5$platbase/lib64/python$py_version_short/site-packagesz9$base/include/python$py_version_short$abiflags/$dist_namez $base/binz$base/lib/pythonz$base/lib64/pythonz$base/include/python/$dist_name)�unix_prefix� unix_home�ntz $usersitez4$userbase/Python$py_version_nodot/Include/$dist_namez)$userbase/Python$py_version_nodot/Scriptsz $userbaseZnt_userz=$userbase/include/python$py_version_short$abiflags/$dist_namez $userbase/bin� unix_userc�������������������@���s:��e�Zd�ZdZdddddddd d ddd ddddddgZdddgZer`e�ddde�f��e�d��ddiZ dd��Z dd��Zdd ��Zd!d"��Z d#d$��Zd%d&��Zd'd(��Zd)d*��Zd+d,��Zd-d.��Zd/d0��Zd1d2��Zd3d4��Zd5d6��Zd7d8��Zd9d:��Zd;d<��Zd=d>��Zd?d@��ZdAdB��ZdCdD��ZdEefdFefdGefdHefdIdJdK��fgZdS�)L�installz'install everything from build directory)zprefix=Nzinstallation prefix)zexec-prefix=Nz.(Unix only) prefix for platform-specific files)zhome=Nz+(Unix only) home directory to install under)z install-base=Nz;base installation directory (instead of --prefix or --home))zinstall-platbase=Nz\base installation directory for platform-specific files (instead of --exec-prefix or --home))zroot=Nz<install everything relative to this alternate root directory)zinstall-purelib=Nz;installation directory for pure Python module distributions)zinstall-platlib=Nz8installation directory for non-pure module distributions)zinstall-lib=Nzginstallation directory for all module distributions (overrides --install-purelib and --install-platlib))zinstall-headers=Nz(installation directory for C/C++ headers)zinstall-scripts=Nz)installation directory for Python scripts)z install-data=Nz%installation directory for data 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])�force�fz1force installation (overwrite any existing files))� skip-buildNz2skip rebuilding everything (for testing/debugging))zrecord=Nz3filename in which to record list of installed filesr���r���r����userNz!install in user site-package '%s'r���c�����������������C���s����d�|�_�d�|�_d�|�_d|�_d�|�_d�|�_d�|�_d�|�_d�|�_d�|�_ d�|�_ d�|�_d�|�_t |�_t|�_d�|�_d�|�_d�|�_d|�_d|�_d|�_d|�_d�|�_d�|�_d�|�_d�S�)Nr�������)�prefix�exec_prefix�homer ����install_base�install_platbase�root�install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_datar ����install_userbaser����install_usersiter����optimize� extra_path�install_path_filer���� skip_build�warn_dir� build_base� build_lib�record��self��r:����>/opt/alt/python38/lib64/python3.8/distutils/command/install.py�initialize_options����s2����zinstall.initialize_optionsc�����������������C���sx��|�j�s|�js|�jr&|�js|�jr&td��|�jr@|�j�s8|�jr@td��|�jrl|�j�sd|�jsd|�jsd|�jsd|�jrltd��tjdkr�|�jr�|�� d��d�|�_|�� d��tjdkr�|�����n|�����|�� d��t j���d�}td d �\}}z t j}W�n�tk r����d}Y�nX�|�j���|�j���|�j���|dt jd�d ���dt jd�d ���|||||d�|�_t�rf|�j|�jd<�|�j|�jd<�|�����|�� d��|�j|�jd<�|�j|�jd<�t�r�ddlm}�td��||�j��|�� ���|�� d��|�j�r�|��!���|�j"d�k�r�|�jj#�r�|�j$|�_"n|�j%|�_"|��&dddddddd��|��'���|�j"|�_(tj)�*|�j"|�j+�|�_"|�j,d�k �r\|��-ddddddd��|�� d��|��.d d!d"��d�S�)#NzWmust supply either prefix/exec-prefix/home or install-base/install-platbase -- not bothz9must supply either home or prefix/exec-prefix -- not bothzGcan't combine user with prefix, exec_prefix/home, or install_(plat)base�posixz+exec-prefix option ignored on this platformzpre-finalize_{unix,other}zpost-finalize_{unix,other}()r���r"���r#�����z%d.%d����z%d%d)Z dist_nameZdist_versionZ dist_fullname� py_versionZpy_version_shortZpy_version_nodotZ sys_prefixr"���Zsys_exec_prefixr#����abiflags�userbaseZusersitezpost-expand_basedirs()�baseZplatbase)�pprintzconfig vars:zpost-expand_dirs()�libr���r���r���r���r���Zlibbasezafter prepending root�build)r5���r5���)r6���r6���)/r"���r#���r$���r%���r&���r���r ����os�name�warn� dump_dirs� finalize_unix�finalize_other�sys�version�splitr���rA����AttributeError�distributionZget_nameZget_versionZget_fullname�version_info�config_vars� HAS_USER_SITEr.���r/����expand_basedirsr���rD����print�expand_dirs�create_home_pathr+���Zext_modulesr)���r(���� convert_paths�handle_extra_path�install_libbase�path�join� extra_dirsr'����change_rootsZset_undefined_options)r9���r@���r"���r#���rA���rD���r:���r:���r;����finalize_options����s����������� � ���� ��� �zinstall.finalize_optionsc�����������������C���s����t�sd�S�ddlm}�t�|d���|�jD�]r}|d�}|d�dkrL|dd��}||�jkrx|�j|�}|�|�}t|�|��}n|�|�}t|�|�}t�d||��q(d�S�)Nr���)� longopt_xlate�:����=z %s: %s) r���Zdistutils.fancy_getoptra���r����debug�user_options�negative_opt� translate�getattr)r9����msgra����optZopt_name�valr:���r:���r;���rJ���u��s���� zinstall.dump_dirsc�����������������C���s"��|�j�d�k s|�jd�k r\|�jd�kr2|�jd�kr2|�jd�ksP|�jd�ksP|�jd�ksP|�jd�krXtd��d�S�|�j r�|�j d�krttd��|�j �|�_�|�_|��d��n�|�j d�k r�|�j �|�_�|�_|��d��nl|�jd�kr�|�jd�k r�td��tj�tj�|�_tj�tj�|�_n|�jd�k�r|�j|�_|�j|�_�|�j|�_|��d��d�S�)NzPinstall-base or install-platbase supplied, but installation scheme is incomplete�$User base directory is not specifiedr���r���z*must not supply exec-prefix without prefixr���)r%���r&���r+���r(���r)���r*���r,���r-���r���r ���r.���r���� select_schemer$���r"���r#���rG���r\����normpathrM���r8���r:���r:���r;���rK������sL���� ������ � �zinstall.finalize_unixc�����������������C���s����|�j�r8|�jd�krtd��|�j�|�_|�_|��tjd���n�|�jd�k r\|�j�|�_|�_|��d��n\|�j d�krvtj �tj �|�_ |�j �|�_|�_z|��tj��W�n"�t k r����tdtj���Y�nX�d�S�)Nrm���Z_userr���z)I don't know how to install stuff on '%s')r ���r.���r���r%���r&���rn���rG���rH���r$���r"���r\���ro���rM����KeyErrorr8���r:���r:���r;���rL������s&���� � �zinstall.finalize_otherc�����������������C���s<���t�|�}tD�]*}d|�}t|�|�d�krt|�|||���qd�S��NZinstall_)�INSTALL_SCHEMES�SCHEME_KEYSri����setattr)r9���rH���Zscheme�key�attrnamer:���r:���r;���rn������s ����zinstall.select_schemec�����������������C���sX���|D�]N}t�|�|�}|d�k rtjdks.tjdkr:tj�|�}t||�j�}t|�||��qd�S�)Nr=���r���)ri���rG���rH���r\���� expanduserr ���rS���rt���)r9����attrs�attrrl���r:���r:���r;���� _expand_attrs���s���� zinstall._expand_attrsc�����������������C���s���|���dddg��d�S�)Nr%���r&���r'����rz���r8���r:���r:���r;���rU������s����zinstall.expand_basedirsc�����������������C���s���|���ddddddg��d�S�)Nr(���r)���r+���r*���r,���r-���r{���r8���r:���r:���r;���rW������s�������zinstall.expand_dirsc�����������������G���s,���|D�]"}d|�}t�|�|tt|�|����qd�S�rq���)rt���r���ri����r9����namesrH���ry���r:���r:���r;���rY������s����zinstall.convert_pathsc�����������������C���s����|�j�d�kr|�jj�|�_�|�j�d�k r�t�d��t|�j�t�rB|�j��d�|�_�t|�j��dkr`|�j�d��}}n"t|�j��dkrz|�j�\}}ntd��t |�}nd�}d}||�_ ||�_d�S�)NzIDistribution option extra_path is deprecated. See issue27919 for details.�,r!���r���r?���zY'extra_path' option must be a list, tuple, or comma-separated string with 1 or 2 elementsr>���)r1���rQ���r���rI���� isinstance�strrO����lenr���r���� path_filer^���)r9���r����r^���r:���r:���r;���rZ������s(���� �� zinstall.handle_extra_pathc�������������� ���G���s0���|D�]&}d|�}t�|�|t|�jt|�|����qd�S�rq���)rt���r ���r'���ri���r|���r:���r:���r;���r_�����s����zinstall.change_rootsc�����������������C���sb���|�j�s d�S�ttj�d��}|�j���D�]8\}}|�|�r$tj�|�s$|�� d|���t� |d��q$d�S�)N�~zos.makedirs('%s', 0o700)i���)r ���r���rG���r\���rw���rS����items� startswith�isdirZdebug_print�makedirs)r9���r$���rH���r\���r:���r:���r;���rX�����s����zinstall.create_home_pathc�����������������C���s"��|�j�s6|��d��|�j�d�j}|�jr6|t��kr6td��|����D�]}|��|��q>|�j r\|�� ���|�jr�|����}|�j r�t|�j �}tt|��D�]}||�|d���||<�q�|��t|�j|fd|�j���ttjjtj�}ttjj|�}tj�tj�|�j��}|�j�r|�j �r|�j�s||k�rt�d|�j��d�S�)NrF���z"Can't install when cross-compilingz'writing list of installed files to '%s'z�modules installed to '%s', which is not in Python's module search path (sys.path) -- you'll have to change the search path yourself)r3���Zrun_commandrQ���Zget_command_objZ plat_namer4���r���r����get_sub_commandsr�����create_path_filer7����get_outputsr'���r�����range�executer����maprG���r\���ro���rM����normcaser+���r2���r���re���)r9���Z build_plat�cmd_name�outputsZroot_lenZcounterZsys_pathr+���r:���r:���r;����run��sD���� ������zinstall.runc�����������������C���sJ���t�j�|�j|�jd��}|�jr8|��t||�jgfd|���n|�� d|���d�S�)N�.pthzcreating %szpath file '%s' not created) rG���r\���r]���r[���r����r2���r����r���r^���rI���)r9����filenamer:���r:���r;���r����I��s���� � �zinstall.create_path_filec�����������������C���sh���g�}|�����D�].}|��|�}|���D�]}||kr"|�|��q"q|�jrd|�jrd|�tj�|�j |�jd����|S�)Nr����) r�����get_finalized_commandr�����appendr����r2���rG���r\���r]���r[���)r9���r����r�����cmdr����r:���r:���r;���r����W��s���� �zinstall.get_outputsc�����������������C���s.���g�}|�����D�]}|��|�}|�|�����q|S��N)r����r�����extend� get_inputs)r9���Zinputsr����r����r:���r:���r;���r����h��s ���� zinstall.get_inputsc�����������������C���s���|�j����p|�j����S�r����)rQ���Zhas_pure_modulesZhas_ext_modulesr8���r:���r:���r;����has_libt��s���� �zinstall.has_libc�����������������C���s ���|�j����S�r����)rQ����has_headersr8���r:���r:���r;���r����z��s����zinstall.has_headersc�����������������C���s ���|�j����S�r����)rQ����has_scriptsr8���r:���r:���r;���r������s����zinstall.has_scriptsc�����������������C���s ���|�j����S�r����)rQ���Zhas_data_filesr8���r:���r:���r;����has_data���s����zinstall.has_datar+���r*���r,���r-���Zinstall_egg_infoc�����������������C���s���dS�)NTr:���r8���r:���r:���r;����<lambda>��������zinstall.<lambda>) �__name__� __module__�__qualname__Zdescriptionrf���Zboolean_optionsrT���r����r���rg���r<���r`���rJ���rK���rL���rn���rz���rU���rW���rY���rZ���r_���rX���r����r����r����r����r����r����r����r����Zsub_commandsr:���r:���r:���r;���r���I���sn��� �; � N�( ", �r���)rM���rG���Z distutilsr���Zdistutils.corer���Zdistutils.debugr���Zdistutils.sysconfigr���Zdistutils.errorsr���Zdistutils.file_utilr���Zdistutils.utilr���r ���r ���r���r���Zsiter ���r���rT���ZWINDOWS_SCHEMErr���rs���r���r:���r:���r:���r;����<module>���s`���� ���� �