£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
B
    YI~d                  @   sH   d dl Z d dlZd dlZd dlmZ d dlmZ dZG dd deZ	dS )    N)Command)DistutilsOptionErrorz.pyc               @   s   e Zd ZdZdddddddgZd	d
dgZdd
iZdd Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd  Zd!S )"install_libz7install all Python modules (extensions and pure Python))zinstall-dir=dzdirectory to install to)z
build-dir=bz'build directory (where to install from))forcefz-force installation (overwrite existing files))compileczcompile .py to .pyc [default])z
no-compileNzdon't compile .py files)z	optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])z
skip-buildNzskip the build stepsr   r	   z
skip-buildz
no-compilec             C   s(   d | _ d | _d| _d | _d | _d | _d S )Nr   )install_dir	build_dirr   r	   optimize
skip_build)self r   B/opt/alt/python37/lib64/python3.7/distutils/command/install_lib.pyinitialize_options3   s    zinstall_lib.initialize_optionsc          	   C   s   |  ddddddd | jd kr&d| _| jd kr6d	| _t| jtsyt| j| _| jd
kr^tW n  ttfk
r   tdY nX d S )Ninstall)	build_libr   )r   r   )r   r   )r	   r	   )r   r   )r   r   TF)r         zoptimize must be 0, 1, or 2)Zset_undefined_optionsr	   r   
isinstanceintAssertionError
ValueErrorr   )r   r   r   r   finalize_options<   s$    


zinstall_lib.finalize_optionsc             C   s0   |    |  }|d k	r,| j r,| | d S )N)buildr   distributionhas_pure_modulesbyte_compile)r   outfilesr   r   r   runV   s    zinstall_lib.runc             C   s2   | j s.| j r| d | j r.| d d S )Nbuild_py	build_ext)r   r   r   Zrun_commandhas_ext_modules)r   r   r   r   r   f   s
    


zinstall_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   warn)r   r!   r   r   r   r   m   s    
zinstall_lib.installc             C   sr   t jr| d d S ddlm} | dj}| jrH||d| j|| j	d | j
dkrn||| j
| j|| j| j	d d S )Nz%byte-compiling is disabled, skipping.r   )r    r   )r   r   prefixdry_run)r   r   r*   verboser+   )sysdont_write_bytecoder)   Zdistutils.utilr    get_finalized_commandrootr	   r   r+   r   r,   )r   filesr    Zinstall_rootr   r   r   r    v   s    


zinstall_lib.byte_compilec       
   	   C   sh   |sg S |  |}| }t||}t|ttj }g }x(|D ] }	|tj||	|d   q@W |S )N)	r/   get_outputsgetattrlenr&   sepappendr'   join)
r   Zhas_anyZ	build_cmdZ
cmd_optionZ
output_dirZbuild_filesr   
prefix_lenZoutputsfiler   r   r   _mutate_outputs   s    


 zinstall_lib._mutate_outputsc             C   sv   g }xl|D ]d}t jt j|d }|tkr0q
| jrL|tjj	|dd | j
dkr
|tjj	|| j
d q
W |S )Nr    )optimizationr   )r&   r'   splitextnormcasePYTHON_SOURCE_EXTENSIONr	   r6   	importlibutilcache_from_sourcer   )r   Zpy_filenamesZbytecode_filesZpy_fileZextr   r   r   _bytecode_filenames   s    



zinstall_lib._bytecode_filenamesc             C   sR   |  | j dd| j}| jr*| |}ng }|  | j dd| j}|| | S )Nr#   r   r$   )r:   r   r   r   r	   rC   r%   )r   Zpure_outputsZbytecode_outputsZext_outputsr   r   r   r2      s    zinstall_lib.get_outputsc             C   sL   g }| j  r&| d}||  | j  rH| d}||  |S )Nr#   r$   )r   r   r/   extendr2   r%   )r   Zinputsr#   r$   r   r   r   
get_inputs   s    



zinstall_lib.get_inputsN)__name__
__module____qualname__descriptionZuser_optionsZboolean_optionsZnegative_optr   r   r"   r   r   r    r:   rC   r2   rE   r   r   r   r   r      s(   
		r   )
r&   importlib.utilr@   r-   Zdistutils.corer   Zdistutils.errorsr   r?   r   r   r   r   r   <module>   s   