<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
B
    ‘–ReÊ8  ã               @   sš   d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl	m
Z
mZmZ ddlmZmZmZmZ ddlmZ ejdkr†ddlZG d	d
„ d
e
ƒZdS )a9  distutils.unixccompiler

Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
  * macros defined with -Dname[=value]
  * macros undefined with -Uname
  * include search directories specified with -Idir
  * libraries specified with -lllib
  * library search directories specified with -Ldir
  * compile handled by 'cc' (or similar) executable with -c option:
    compiles .c to .o
  * link static library handled by 'ar' command (possibly with 'ranlib')
  * link shared library handled by 'cc -shared'
é    N)Ú	sysconfig)Únewer)Ú	CCompilerÚgen_preprocess_optionsÚgen_lib_options)ÚDistutilsExecErrorÚCompileErrorÚLibErrorÚ	LinkError)ÚlogÚdarwinc            
   @   sä   e Zd ZdZddgdgdgddgdgddgddœZejdd… d	krNd
ged
< ddddddgZdZdZ	dZ
dZdZd Z ZZeZejdkrdZd,dd„Zdd„ Zd-dd„Zd.d d!„Zd"d#„ Zd$d%„ Zd&d'„ Zd(d)„ Zd/d*d+„ZdS )0ÚUnixCCompilerÚunixNÚccz-sharedÚarz-cr)ÚpreprocessorÚcompilerÚcompiler_soÚcompiler_cxxÚ	linker_soÚ
linker_exeÚarchiverÚranlibé   r   r   z.cz.Cz.ccz.cxxz.cppz.mz.oz.az.soz.dylibz.tbdzlib%s%sÚcygwinz.exec          
   C   sÒ   |   d ||¡}|\}}}t||ƒ}	| j|	 }
|r>|
 d|g¡ |rN||
d d…< |r\|
 |¡ |
 |¡ | js~|d ks~t||ƒrÎ|r”|  tj	 
|¡¡ y|  |
¡ W n* tk
rÌ } zt|ƒ‚W d d }~X Y nX d S )Nz-or   )Z_fix_compile_argsr   r   ÚextendÚappendÚforcer   ÚmkpathÚosÚpathÚdirnameÚspawnr   r   )ÚselfÚsourceZoutput_fileZmacrosÚinclude_dirsÚextra_preargsÚextra_postargsÚ
fixed_argsÚignoreÚpp_optsZpp_argsÚmsg© r,   ú™/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_distutils/unixccompiler.pyÚ
preprocessU   s$    




zUnixCCompiler.preprocessc       	   
   C   sp   | j }tjdkr t ||| ¡}y |  || |d|g | ¡ W n* tk
rj } zt|ƒ‚W d d }~X Y nX d S )Nr   z-o)r   ÚsysÚplatformÚ_osx_supportÚcompiler_fixupr"   r   r   )	r#   ÚobjÚsrcÚextZcc_argsr'   r*   r   r+   r,   r,   r-   Ú_compileo   s    

zUnixCCompiler._compiler   c          
   C   s²   |   ||¡\}}| j||d}|  ||¡r¢|  tj |¡¡ |  | j|g | | j	 ¡ | j
r®y|  | j
|g ¡ W q® tk
rž } zt|ƒ‚W d d }~X Y q®X nt d|¡ d S )N)Ú
output_dirzskipping %s (up-to-date))Ú_fix_object_argsÚlibrary_filenameÚ
_need_linkr   r   r    r!   r"   r   Úobjectsr   r   r	   r   Údebug)r#   r;   Zoutput_libnamer7   r<   Útarget_langÚoutput_filenamer+   r,   r,   r-   Úcreate_static_libz   s    zUnixCCompiler.create_static_libc          
   C   sÞ  |   ||¡\}}|  |||¡}|\}}}t| |||ƒ}t|ttd ƒfƒsPtdƒ‚|d k	rftj 	||¡}|  
||¡rÎ|| j | d|g }|	rœdg|d d…< |
r¬|
|d d…< |rº| |¡ |  tj |¡¡ yÒ|tjkrè| jd d … }n| jd d … }|dkrv| jrvd}tj |d ¡dkrDd}xd|| krB|d7 }q(W tj || ¡d	kr`d}nd}| j| ||| < tjd
krŽt ||¡}|  || ¡ W n, tk
rÊ } zt|ƒ‚W d d }~X Y nX nt d|¡ d S )Nz%'output_dir' must be a string or Nonez-oz-gr   zc++Úenvé   ú=Z	ld_so_aixr   zskipping %s (up-to-date))r8   Z_fix_lib_argsr   Ú
isinstanceÚstrÚtypeÚ	TypeErrorr   r    Újoinr:   r;   r   r   r!   r   Z
EXECUTABLEr   r   r   Úbasenamer/   r0   r1   r2   r"   r   r
   r   r<   )r#   Ztarget_descr;   r>   r7   Ú	librariesÚlibrary_dirsÚruntime_library_dirsÚexport_symbolsr<   r&   r'   Ú
build_tempr=   r(   Zlib_optsZld_argsZlinkerÚiÚoffsetr+   r,   r,   r-   Úlink”   sN    


zUnixCCompiler.linkc             C   s   d| S )Nz-Lr,   )r#   Údirr,   r,   r-   Úlibrary_dir_optionÖ   s    z UnixCCompiler.library_dir_optionc             C   s   d|kpd|kS )NÚgcczg++r,   )r#   Zcompiler_namer,   r,   r-   Ú_is_gccÙ   s    zUnixCCompiler._is_gccc             C   sÚ   t j t t d¡¡d ¡}tjd d… dkrjddl	m
}m} |ƒ }|r`||ƒddgkr`d| S d	| S nNtjd d
… dkr„d| S tjd d… dkr¸|  |¡r¬dd	| gS dd	| gS t d¡dkrÎd| S d| S d S )NÚCCr   r   r   )Úget_macosx_target_verÚsplit_versioné
   é   z-Wl,-rpath,z-Lé   Zfreebsdz-Wl,-rpath=zhp-uxz-Wl,+sz+sÚGNULDÚyesz-Wl,--enable-new-dtags,-Rz-Wl,-R)r   r    rH   ÚshlexÚsplitr   Úget_config_varr/   r0   Údistutils.utilrV   rW   rT   )r#   rQ   r   rV   rW   Zmacosx_target_verr,   r,   r-   Úruntime_library_dir_optionÜ   s     

z(UnixCCompiler.runtime_library_dir_optionc             C   s   d| S )Nz-lr,   )r#   Úlibr,   r,   r-   Úlibrary_option  s    zUnixCCompiler.library_optionc             C   s’  | j |dd}| j |dd}| j |dd}| j |dd}tjdkrpt d¡}t d|¡}	|	d krfd	}
n
|	 d
¡}
x|D ]}tj	 
||¡}tj	 
||¡}tj	 
||¡}tj	 
||¡}tjdkrD| d¡sä| d¡rD| d¡sDtj	 
|
|d
d … |¡}tj	 
|
|d
d … |¡}tj	 
|
|d
d … |¡}tj	 
|
|d
d … |¡}tj	 |¡rV|S tj	 |¡rh|S tj	 |¡rz|S tj	 |¡rx|S qxW d S )NÚshared)Zlib_typeÚdylibÚ
xcode_stubÚstaticr   ÚCFLAGSz-isysroot\s*(\S+)ú/rA   z/System/z/usr/z/usr/local/)r9   r/   r0   r   r_   ÚreÚsearchÚgroupr   r    rG   Ú
startswithÚexists)r#   Údirsrb   r<   Zshared_fZdylib_fZxcode_stub_fZstatic_fÚcflagsÚmZsysrootrQ   rd   re   rg   rf   r,   r,   r-   Úfind_library_file  s>    



zUnixCCompiler.find_library_file)NNNNN)Nr   N)
NNNNNr   NNNN)r   )Ú__name__Ú
__module__Ú__qualname__Úcompiler_typeZexecutablesr/   r0   Zsrc_extensionsZobj_extensionZstatic_lib_extensionÚshared_lib_extensionZdylib_lib_extensionZxcode_stub_lib_extensionZstatic_lib_formatZshared_lib_formatZdylib_lib_formatZxcode_stub_lib_formatZexe_extensionr.   r6   r?   rP   rR   rT   ra   rc   rr   r,   r,   r,   r-   r   -   sD   

 

   
>'r   )Ú__doc__r   r/   rj   r]   Ú	distutilsr   Údistutils.dep_utilr   Údistutils.ccompilerr   r   r   Údistutils.errorsr   r   r	   r
   r   r0   r1   r   r,   r,   r,   r-   Ú<module>   s    
