/usr/local/lib64/python3.6/site-packages/numpy/distutils/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/numpy/distutils/__pycache__/unixccompiler.cpython-36.pyc (3221B)
3
Eg @ s~ d Z ddlZddlmZmZmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
dd Ze ed
e dddZe ed
e dS )z>
unixccompiler - can handle very long argument lists for ar.
N)CompileErrorDistutilsExecErrorLibError)
UnixCCompiler)replace_method)_commandline_dep_string)logc C s | j }|d dkrFd|kr$|jd d|kr6|jd |dg7 }|| _ dtjkrddlm} djtjd j } dj|dd j }
dj| j }| |kr|j|
| }|j | _ dj| j }| |kr|j | j | _ d tj
j| j d |f }
t| d
drdd
|d g}ng }y*| j
| j | |d|g | | |
d W n4 tk
rp } zt|}t|W Y dd}~X nX |rt|d d}|jt||| W dQ R X dS )z9Compile a single source files with a Unix-style compiler.r ZaCCz-Aez-Aaz-AAOPT)get_config_vars z%s: %sZ
_auto_dependsFz-MMDz-MFz.dz-o)displayNa)compiler_soremoveosenvirondistutils.sysconfigr
joinsplitreplace linker_sopathbasenamegetattrspawnr strr openwriter )selfobjsrcextZcc_argsZextra_postargsZpp_optsZccompr
optZgcv_optZccomp_sZllink_sr depsemsgf r' I/usr/local/lib64/python3.6/site-packages/numpy/distutils/unixccompiler.pyUnixCCompiler__compile s@
r) _compilec C sP | j ||\}}| j||d}| j||r@ytj| W n ttfk
rR Y nX | jtjj | || j
}xZ|r|dd }|dd }dtjj| jd t
||f }| j| j|g | |d qrW | jrLdtjj| jd |f }y| j| j|g |d W n4 tk
r< } zt| }
t|
W Y dd} ~ X nX ntjd| dS ) a
Build a static library in a separate sub-process.
Parameters
----------
objects : list or tuple of str
List of paths to object files used to build the static library.
output_libname : str
The library name as an absolute or relative (if `output_dir` is used)
path.
output_dir : str, optional
The path to the output directory. Default is None, in which case
the ``output_dir`` attribute of the UnixCCompiler instance.
debug : bool, optional
This parameter is not used.
target_lang : str, optional
This parameter is not used.
Returns
-------
None
)
output_dirN2 z %s: adding %d object files to %sr )r z%s:@ %szskipping %s (up-to-date))Z_fix_object_argsZlibrary_filenameZ
_need_linkr unlinkIOErrorOSErrormkpathr dirnameobjectsr archiverlenr Zranlibr r r r debug)r r2 Zoutput_libnamer+ r5 Ztarget_langZoutput_filenameZtmp_objectsr r$ r% r' r' r( UnixCCompiler_create_static_lib@ s8
r6 Zcreate_static_lib)Nr N)__doc__r distutils.errorsr r r Zdistutils.unixccompilerr Znumpy.distutils.ccompilerr Znumpy.distutils.misc_utilr Znumpy.distutilsr r) r6 r' r' r' r(
s /
B