ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyo

�
�/{Yc@s�ddlZddlZddlZddlZddlmZddlmZddl	m	Z	yddl
mZWn$ek
r�ddd��YZnXdeefd	��YZd
�Z
dS(i����N(tbuild_py(tconvert_path(tglob(t	Mixin2to3RcBseZed�ZRS(cCsdS(s
do nothingN((tselftfilestdoctests((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pytrun_2to3
s(t__name__t
__module__tTrueR(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyRsRcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zej
d
kr{dd�Znd
�Zd�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.
    cCsctj|�|jj|_|jjp+i|_d|jkrM|jd=ng|_g|_dS(Nt
data_files(t	_build_pytfinalize_optionstdistributiontpackage_datatexclude_package_datat__dict__t_build_py__updated_filest_build_py__doctests_2to3(R((sL/opt/alt/python33/lib/python3.3/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|dd��dS(s?Build modules, packages, and copy data files to build directoryNtinclude_bytecodei(
t
py_modulestpackagest
build_modulestbuild_packagestbuild_package_dataRRtFalseR
Rtbyte_compileRtget_outputs(R((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pytrun!s	
	

cCs3|dkr#|j�|_}|Stj||�S(NR(t_get_data_filesRRt__getattr__(RtattrR((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR5scCsAtj||||�\}}|r7|jj|�n||fS(N(Rtbuild_moduleRtappend(Rtmoduletmodule_filetpackagetoutfiletcopied((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR!;scCs�|j�g}x�|jpdD]�}|j|�}tjj|jg|jd��}t|�d}g|j	||�D]}||^q}}|j
||||f�q W|S(s?Generate list of '(package,src_dir,build_dir,filenames)' tuplest.i((tanalyze_manifestRtget_package_dirtostpathtjoint	build_libtsplittlentfind_data_filesR"(RtdataR%tsrc_dirt	build_dirtplentfilet	filenames((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyRAs
%)cCs�|jjdg�|jj|g�}|jj|g�}x6|D].}|jttjj|t|����qEW|j	|||�S(s6Return filenames for package's data files in 'src_dir't(
Rtgettmanifest_filestextendRR+R,R-Rtexclude_data_files(RR%R3tglobsRtpattern((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR1Vs
,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(RR+R,R-tmkpathtdirnamet	copy_filetabspathRtconvert_2to3_doctestsRR"(
RR%R3R4R7tfilenamettargettsrcfiletoutfR'((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR`s
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+R,R/tNoneR-tendswitht
setdefaultR"(Rtmftsrc_dirsR%tei_cmdR,tdtftprevtoldftdf((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR)ls(

!cCsdS(N((R((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pytget_data_files�ss2.4icCsRtj||�g|jD]4\}}}}|D]}tjj||�^q/qS(sjReturn complete list of files copied to the build directory

            This includes both '.py' files and data files, as well as '.pyc'
            and '.pyo' files if 'include_bytecode' is true.  (This method is
            needed for the 'install_lib' command to do its job properly, and to
            generate a correct installation manifest.)
            (RRRR+R,R-(RRR%R3R4R7RD((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR�scCs�y|j|SWntk
r"nXtj|||�}||j|<|sY|jjr]|Sx;|jjD])}||ks�|j|d�rjPqjqjW|St|d�}dj�|j	�kr�ddl
m}|jd|�n|j
�|S(s8Check namespace packages' __init__ for declare_namespaceR(trbUtdeclare_namespacei����(tlogs�WARNING: %s is a namespace package, but its __init__.py does
not declare_namespace(); setuptools 0.7 will REQUIRE this!
(See the setuptools manual under "Namespace Packages" for details.)
(tpackages_checkedtKeyErrorRt
check_packageRtnamespace_packagest
startswithtopentencodetreadt	distutilsR\twarntclose(RR%tpackage_dirtinit_pytpkgRUR\((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR_�s(



cCsi|_tj|�dS(N(R]Rtinitialize_options(R((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyRk�s	cCsAtj||�}|jjdk	r=tjj|jj|�S|S(N(RR*Rtsrc_rootRNR+R,R-(RR%tres((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR*�sc	Cs�|jjdg�|jj|g�}g}x<|D]4}|jtj|tjj|t|����q5Wt	j
|�}i}g|D]6}||kr�||kr�|j|d�r�|^q�S(s6Filter filenames for package's data files in 'src_dir'R8i(RR9R;tfnmatchtfilterR+R,R-RtdicttfromkeysRP(	RR%R3RR=tbadR>tseenRU((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR<�s
&(RR	t__doc__R
RRR!RR1RR)RYtsystversionRR_RkR*R<(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyRs 						
						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+R,tisabstdistutils.errorsRwttextwraptdedenttlstrip(R,Rwtmsg((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyRJ�s((R+RuRnRztdistutils.command.build_pyRRtdistutils.utilRRtsetuptools.lib2to3_exRtImportErrorRJ(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyt<module>s
�

Zerion Mini Shell 1.0