Current File : //usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyc |
�
E�`Qc @ s� d Z d d l Z d d l m Z m Z d d l Td d l m Z d d l m Z e
j d d k rt d d l Z n d d l
m Z d
� Z e e d e � d d d d � Z e e d
e � d S( s=
unixccompiler - can handle very long argument lists for ar.
i����N( t DistutilsExecErrort CompileError( t *( t replace_method( t
get_exceptioni i ( t logc
C s� | j } | d d k rj d | k r5 | j d � n d | k rQ | j d � n | d g 7} | | _ n d t j j | j d � | f } y/ | j | j | | d | g | d | �Wn, t k
r� t t � � } t | � � n Xd S(
s9 Compile a single source files with a Unix-style compiler.i t aCCs -Aes -Aas -AAs %s: %ss -ot displayN(
t compiler_sot removet ost patht basenamet spawnR t strR R (
t selft objt srct extt cc_argst extra_postargst pp_optst ccompR t msg( ( sC /usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyt UnixCCompiler__compile s
#
t _compilec
C s� | j | | � \ } } | j | d | �} | j | | � r�y t j | � Wn t t f k
ri n X| j t j j | � � | | j
} xk | r� | d } | d } d t j j | j d � t
| � | f } | j | j | g | d | �q� W| j r�d t j j | j d � | f } y! | j | j | g d | �Wq}t k
ryt t � � } t | � � q}Xq�n t j d | � d S( s�
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
t
output_diri2 s %s: adding %d object files to %si R s %s:@ %ss skipping %s (up-to-date)N( t _fix_object_argst library_filenamet
_need_linkR
t unlinkt IOErrort OSErrort mkpathR t dirnamet objectsR t archivert lenR
t ranlibR R R t LibErrorR t debug(
R R# t output_libnameR R( t target_langt output_filenamet tmp_objectsR R ( ( sC /usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyt UnixCCompiler_create_static_lib+ s8
t create_static_lib( t __doc__R
t distutils.errorsR R t distutils.unixccompilert numpy.distutils.ccompilerR t numpy.distutils.compatR t syst version_infoR t numpy.distutilsR t
UnixCCompilert NoneR- ( ( ( sC /usr/lib64/python2.7/site-packages/numpy/distutils/unixccompiler.pyt <module> s
B