ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyo

�
0��`c@s�ddlmZddlmZddljjZddlZddlZddl	Z	ddl
Z
ddlZddl
Z
ddlZddlmZyddlmZWn$ek
r�ddd��YZnXdejefd	��YZd
�ZdS(i����(tglob(tconvert_pathN(tmap(t	Mixin2to3RcBseZed�ZRS(cCsdS(s
do nothingN((tselftfilestdoctests((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pytrun_2to3t(t__name__t
__module__tTrueR(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyRstbuild_pycBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�ZRS(sXEnhanced 'build_py' command that includes data files with packages

    The data files are specified via a 'package_data' argument to 'setup()'.
    See 'setuptools.dist.Distribution' for more details.

    Also, this version of the 'build_py' command allows you to specify both
    'py_modules' and 'packages' in the same setup operation.
    cCsftjj|�|jj|_|jjp.i|_d|jkrP|jd=ng|_g|_dS(Nt
data_files(	torigRtfinalize_optionstdistributiontpackage_datatexclude_package_datat__dict__t_build_py__updated_filest_build_py__doctests_2to3(R((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR s	
	cCs�|jr|jrdS|jr.|j�n|jrN|j�|j�n|j|jt�|j|jt�|j|j	t�|j
tjj
|dd��dS(s?Build modules, packages, and copy data files to build directoryNtinclude_bytecodei(t
py_modulestpackagest
build_modulestbuild_packagestbuild_package_dataRRtFalseRRtbyte_compileRRtget_outputs(R((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pytrun*s	
	

cCs5|dkr"|j�|_|jStjj||�S(slazily compute data filesR
(t_get_data_filesR
RRt__getattr__(Rtattr((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR!>scCsDtjj||||�\}}|r:|jj|�n||fS(N(RRtbuild_moduleRtappend(Rtmoduletmodule_filetpackagetoutfiletcopied((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR#Es
cCs)|j�tt|j|jp"d��S(s?Generate list of '(package,src_dir,build_dir,filenames)' tuples((tanalyze_manifesttlistRt_get_pkg_data_filesR(R((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR Ls
cCsx|j|�}tjj|jg|jd��}g|j||�D]}tjj||�^qG}||||fS(Nt.(tget_package_dirtostpathtjoint	build_libtsplittfind_data_filestrelpath(RR'tsrc_dirt	build_dirtfilet	filenames((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR,Qs
%1cCs�|jjdg�|jj|g�}|jj|g�}x6|D].}|jttjj|t|����qEW|j	|||�S(s6Return filenames for package's data files in 'src_dir'R(
Rtgettmanifest_filestextendRR/R0R1Rtexclude_data_files(RR'R6tglobsRtpattern((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR4_s
,c
Cs�x�|jD]�\}}}}x�|D]�}tjj||�}|jtjj|��tjj||�}|j||�\}}	tjj|�}|	r#||jj	kr#|j
j|�q#q#Wq
WdS(s$Copy data files into build directoryN(R
R/R0R1tmkpathtdirnamet	copy_filetabspathRtconvert_2to3_doctestsRR$(
RR'R6R7R9tfilenamettargettsrcfiletoutfR)((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyRis
cCs\i|_}|jjsdSi}x0|jp2dD]}||t|j|��<q3W|jd�|jd�}x�|jj	D]�}t
jjt|��\}}d}|}	xU|r||kr||kr|}t
jj|�\}}
t
jj|
|�}q�W||kr|jd�r4||	kr4qn|j||g�j|�qqWdS(Ntegg_infos.py((R;Rtinclude_package_dataRtassert_relativeR.trun_commandtget_finalized_commandtfilelistRR/R0R3tNoneR1tendswitht
setdefaultR$(Rtmftsrc_dirsR'tei_cmdR0tdtftprevtoldftdf((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR*vs(

!cCsdS(N((R((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pytget_data_files�scCs�y|j|SWntk
r"nXtjj|||�}||j|<|s\|jjr`|Sx;|jjD])}||ks�|j|d�rmPqmqmW|Stj	|d��}|j
�}WdQXd|kr�tjj
d|f��n|S(s8Check namespace packages' __init__ for declare_namespaceR-trbNtdeclare_namespaces�Namespace package problem: %s is a namespace package, but its
__init__.py does not call declare_namespace()! Please fix it.
(See the setuptools manual under "Namespace Packages" for details.)
"(tpackages_checkedtKeyErrorRRt
check_packageRtnamespace_packagest
startswithtiotopentreadt	distutilsterrorstDistutilsError(RR'tpackage_dirtinit_pytpkgRVtcontents((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR_�s&

	cCsi|_tjj|�dS(N(R]RRtinitialize_options(R((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyRl�s	cCsDtjj||�}|jjdk	r@tjj|jj|�S|S(N(	RRR.Rtsrc_rootROR/R0R1(RR'tres((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR.�scs�|jjdg�|jj|g�}t��fd�|D��}tjtj�}g�D])}||kr`t||�r`|^q`S(s6Filter filenames for package's data files in 'src_dir'Rc3sC|]9}tj�tjj�t|���D]}|Vq.qdS(N(tfnmatchtfilterR/R0R1R(t.0R?titem(RR6(sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pys	<genexpr>�s(RR:tsettcollectionstdefaultdictt	itertoolstcounttnext(RR'R6RR>tbadtseentfn((RR6sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyR=�s

(R	R
t__doc__RRR!R#R R,R4RR*RZR_RlR.R=(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyRs	
						
	
					cCsOtjj|�s|Sddlm}tjd�j�|}||��dS(Ni����(tDistutilsSetupErrors�
        Error: setup script specifies an absolute path:

            %s

        setup() arguments must *always* be /-separated paths relative to the
        setup.py directory, *never* absolute paths.
        (R/R0tisabstdistutils.errorsR}ttextwraptdedenttlstrip(R0R}tmsg((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyRK�s((Rtdistutils.utilRtdistutils.command.build_pytcommandRRR/RoR�RbRReRtRvtsetuptools.extern.six.movesRtsetuptools.lib2to3_exRtImportErrorRK(((sL/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_py.pyt<module>s 
�

Zerion Mini Shell 1.0