ó Ÿ/{Yc@sÁddlZddlZddlZddlZddlmZddlmZddl m Z yddl m Z Wn$e k ršdd d„ƒYZ nXdee fd „ƒ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 „Z e j d kr{d d „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 t j |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 t get_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_filesR R 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(Rtmodulet module_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( R R+R,R-tmkpathtdirnamet copy_filetabspathRtconvert_2to3_doctestsRR"( RR%R3R4R7tfilenamettargettsrcfiletoutfR'((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyR`s c Cs\i|_}|jjsdSi}x0|jp2dD]}||t|j|ƒƒ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_exRt ImportErrorRJ(((sL/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/build_py.pyts     Á