%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyo

�
�9Zc@`sFdZddlmZmZmZddlZddlmZddlZddlm	Z
ddlmZm
Z
mZddlmZddlmZdd	lmZmZmZmZmZmZmZe
jZxVeee��D]BZeeddkr�eeddfeed
ee<q�q�Wde
fd��YZ	dS(sC Modified version of build_clib that handles fortran source files.
i(tdivisiontabsolute_importtprint_functionN(tglob(t
build_clib(tDistutilsSetupErrortDistutilsErrortDistutilsFileError(tlog(tnewer_group(tfilter_sourcest
has_f_sourcesthas_cxx_sourcestall_stringstget_lib_source_filestis_sequencetget_numpy_include_dirss
build-clibs
build-tempt=iRcB`s|eZdZejdddgZejdgZd	�Zd
�Zd�Z	d�Z
d
�Zd�Zd�Z
d�ZRS(s1build C/C++/F libraries used by Python extensionss
fcompiler=s!specify the Fortran compiler typetinplacetisBuild in-places	parallel=tjsnumber of parallel jobscC`s,tj|�d|_d|_d|_dS(Ni(told_build_clibtinitialize_optionstNonet	fcompilerRtparallel(tself((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyR's
		cC`sc|jrByt|j�|_WqBtk
r>td��qBXntj|�|jdd�dS(Ns)--parallel/-j argument must be an integertbuildR(RR(Rtintt
ValueErrorRtfinalize_optionstset_undefined_options(R((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyR-s	

cC`s:x3|jD](\}}t|jdg��r
tSq
WtS(Ntsources(t	librariesRtgettTruetFalse(Rtlib_namet
build_info((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pythave_f_sources6scC`s:x3|jD](\}}t|jdg��r
tSq
WtS(NR (R!RR"R#R$(RR%R&((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pythave_cxx_sources<sc
C`sb|js
dSg}|jd�xK|jD]@\}}|jdd�}|r*||kr*|j|�q*q*Wddlm}|d|jd|jd|j	�|_|jj
|jd|j��|j}d|_|jj
|�||_|jj�|j�r�dd	lm}|d|jd
|jd|jd|j	dd|kd
|j�|_|jdk	r�|jj
|j�|j}d|_|jj
|�||_|jj�q�n	d|_|j|j�|jr^x||jjD]k}|jj|j�}tjj|j|�}	tjj|j|�}
|j|j�t j!|	|
�q�WndS(Nt	build_srctlanguagei(tnew_compilertcompilertdry_runtforcetneed_cxx(t
new_fcompilertverboset
requiref90tf90t
c_compiler("R!trun_commandR"Rtappendtdistutils.ccompilerR+R,R-R.t	customizetdistributionR(t
customize_cmdtshow_customizationR'tnumpy.distutils.fcompilerR0RR1t_f_compilertbuild_librariesRtinstalled_librariestlibrary_filenametnametostpathtjoinRt
target_dirtmkpathtshutiltcopy(Rt	languagesR%R&tlR+R!R0tlibnametsourcettarget((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pytrunBsV	
	
			
								cC`sA|j|j�g}x$|jD]}|jt|��q W|S(N(tcheck_library_listR!textendR(Rt	filenamestlib((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pytget_source_files|s
cC`s.x'|D]\}}|j|||�qWdS(N(tbuild_a_library(RR!R%R&((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyR>�sc"
C`s�|j}|j}|jd�}|dks:t|�rUtddd|��nt|�}t|�\}}}	}
|
p�|jdd�dk}g}|r�|jd�n|r�|jd�n|r�|jd�n|	r�|jd	�n||d
<|j	|d|j
�}
||jdg�}|jpGt||
d
�s^t
jd|�dSt
jd|�|jdi�}|dk	r<|r<t
jd|f�ddlm}|d|jd|jd|jd|jd|d|j�}|dk	r<|j}|jd�j�}|j|�|j|�q<n|	sH|
rg|dkrgtd|��n|dk	r�|jd�p�g|_|jd�p�g|_n|jd�}|jd�}|dkr�g}n|jd�p�g}|jt��|jd �pg}tj j!|
�}|r;|j"|�n|jd!kr]||7}g}ng}|r�t
jd"�|j#|d|j$d|d|d#|jd$|�}n|rt
jd%�|j%�}|j#|d|j$d|d|d#|jd$|�}|j|�n|	s|
r�g}g}|rc|j&dkrJt'd&�}n||j(||�7}n|
r�t
jd'�||j#|
d|j$d|d|d#|jd$|�7}n|r�|jj&dkr�x�t'd&�D]�}||kr�q�ntj j)||�}tj j*|�tj j*|�kr,q�ntj j+|�rNtj,|�ny|j-||�Wq�t.k
r�t
j/d(||f�q�Xq�Wn|	r�t
jd)�||j#|	d|j$d|d|d#|jd$|�7}q�ng}|j|�|j0||d|j
d#|j�|jd*g�}x<|D]4\} }!| |kr2|j|!jd*g��q2q2W|r}||d*<ndS(+NR s&in 'libraries' option (library '%s'), s&'sources' must be present and must be sa list of source filenamesR*tcR3sc++tf77tsource_languagest
output_dirtdependstnewers"skipping '%s' library (up-to-date)sbuilding '%s' libraryt	config_fcsEusing additional config_fc from setup script for fortran compiler: %si(R0R,R1R-R.R2R4s<library %s has Fortran sources but no Fortran compiler foundtextra_f77_compile_argstextra_f90_compile_argstmacrostinclude_dirstextra_compiler_argstmodule_dirstmsvcscompiling C sourcestdebugtextra_postargsscompiling C++ sourcess*.mods#compiling Fortran 90 module sourcessfailed to move %r to %rscompiling Fortran sourcesR!(1R,R=R"RRRtlistR
R6R@RR.R	RRctinfoR<R0t
compiler_typeR1R-R9tget_option_dictRHtupdateR8RR\R]RPRRBRCtdirnameRFtcompilet
build_temptcxx_compilertmodule_dir_switchRtmodule_optionsRDtabspathtisfiletremovet	move_fileRtwarntcreate_static_lib("RR&R%R!R,RR t	c_sourcestcxx_sourcest	f_sourcestfmodule_sourcesR2RWtlib_fileRYR[R0tdisttbase_config_fcR^R_RdRatmodule_build_dirtobjectsRmtcxx_objectst	f_objectstexisting_modulestftttclib_librariestlnametbinfo((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyRT�s		
					

	
	
		
				
		
$
	
		
	
 N(s
fcompiler=Ns!specify the Fortran compiler type(RRsBuild in-place(s	parallel=Rsnumber of parallel jobs(t__name__t
__module__tdescriptionRtuser_optionsRtboolean_optionsRRR'R(RNRSR>RT(((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyRs 
						:		(s
build-clibs
build-temp( t__doc__t
__future__RRRRBRRGtdistutils.command.build_clibRRtdistutils.errorsRRRtnumpy.distutilsRtdistutils.dep_utilR	tnumpy.distutils.misc_utilR
RRR
RRRR�t_ltrangetlent_i(((sU/opt/alt/python27/lib64/python2.7/site-packages/numpy/distutils/command/build_clib.pyt<module>s4	,

Zerion Mini Shell 1.0