• File: build_py.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/setuptools/command/build_py.pyo
  • Date Modified: 05/07/2020 3:04 PM
  • File size: 10.42 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

#^c@sddlmZddlmZddljjZddlZddlZddl	Z	ddl
Z
ddlZddl
Z
ddlmZddlmZmZmZyddlmZWn$ek
rdd
dYZnXd	ejefd
YZddZdZdS(i(tglob(tconvert_pathN(tsix(tmaptfiltertfilterfalse(t	Mixin2to3RcBseZedZRS(cCsdS(s
do nothingN((tselftfilestdoctests((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pytrun_2to3s(t__name__t
__module__tTrueR
(((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRstbuild_pycBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZedZRS(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(	torigRtfinalize_optionstdistributiontpackage_datatexclude_package_datat__dict__t_build_py__updated_filest_build_py__doctests_2to3(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR!s	
	cCs|jr|jrdS|jr.|jn|jrN|j|jn|j|jt|j|jt|j|j	t|j
tjj
|dddS(s?Build modules, packages, and copy data files to build directoryNtinclude_bytecodei(t
py_modulestpackagest
build_modulestbuild_packagestbuild_package_dataR
RtFalseR
Rtbyte_compileRRtget_outputs(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pytrun+s	
	

cCs5|dkr"|j|_|jStjj||S(slazily compute data filesR(t_get_data_filesRRRt__getattr__(Rtattr((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR#?scCsqtjr-t|tjr-|jd}ntjj||||\}}|rg|jj	|n||fS(Nt.(
RtPY2t
isinstancetstring_typestsplitRRtbuild_moduleRtappend(Rtmoduletmodule_filetpackagetoutfiletcopied((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR*FscCs)|jtt|j|jp"dS(s?Generate list of '(package,src_dir,build_dir,filenames)' tuples((tanalyze_manifesttlistRt_get_pkg_data_filesR(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR"Ps
cCsx|j|}tjj|jg|jd}g|j||D]}tjj||^qG}||||fS(NR%(tget_package_dirtostpathtjoint	build_libR)tfind_data_filestrelpath(RR.tsrc_dirt	build_dirtfilet	filenames((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR3Us
%1cCs|j|j||}tt|}tjj|}ttj	j
|}tj|jj|g|}|j
|||S(s6Return filenames for package's data files in 'src_dir'(t_get_platform_patternsRRRt	itertoolstchaint
from_iterableRR5R6tisfiletmanifest_filestgettexclude_data_files(RR.R;tpatternstglobs_expandedt
globs_matchest
glob_filesR((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR9cs		c
Csx|jD]\}}}}x|D]}tjj||}|jtjj|tjj||}|j||\}}	tjj|}|	r#||jj	kr#|j
j|q#q#Wq
WdS(s$Copy data files into build directoryN(RR5R6R7tmkpathtdirnamet	copy_filetabspathRtconvert_2to3_doctestsRR+(
RR.R;R<R>tfilenamettargettsrcfiletoutfR0((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRts
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|
|}qW||kr|jdr4||	kr4qn|j||gj|qqWdS(Ntegg_infos.py((RDRtinclude_package_dataRtassert_relativeR4trun_commandtget_finalized_commandtfilelistRR5R6R)tNoneR7tendswitht
setdefaultR+(Rtmftsrc_dirsR.tei_cmdR6tdtftprevtoldftdf((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR1s(

!cCsdS(N((R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pytget_data_filesscCsy|j|SWntk
r"nXtjj|||}||j|<|s\|jjr`|Sx;|jjD])}||ks|j|drmPqmqmW|Stj	|d}|j
}WdQXd|krtjj
d|fn|S(s8Check namespace packages' __init__ for declare_namespaceR%trbNtdeclare_namespacesNamespace 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_checkedtKeyErrorRRt
check_packageRtnamespace_packagest
startswithtiotopentreadt	distutilsterrorstDistutilsError(RR.tpackage_dirtinit_pytpkgRatcontents((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRjs&

	cCsi|_tjj|dS(N(RhRRtinitialize_options(R((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRws	cCsDtjj||}|jjdk	r@tjj|jj|S|S(N(	RRR4Rtsrc_rootRZR5R6R7(RR.tres((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR4scs~t|j|j||}fd|D}tjj|}t|fdD}tt|S(s6Filter filenames for package's data files in 'src_dir'c3s!|]}tj|VqdS(N(tfnmatchR(t.0tpattern(R(s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys	<genexpr>sc3s!|]}|kr|VqdS(N((R{tfn(tbad(s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys	<genexpr>s(R2R?RR@RARBtsett_unique_everseen(RR.R;RRGtmatch_groupstmatchestkeepers((R~Rs?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRFs	

cs>tj|jdg|j|g}fd|DS(s
        yield platform-specific path patterns (suitable for glob
        or fn_match) from a glob-based spec (such as
        self.package_data or self.exclude_package_data)
        matching package in src_dir.
        tc3s*|] }tjjt|VqdS(N(R5R6R7R(R{R|(R;(s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pys	<genexpr>s(R@RARE(tspecR.R;traw_patterns((R;s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyR?s
(RRt__doc__RR!R#R*R"R3R9RR1ReRjRwR4RFtstaticmethodR?(((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRs 	
			
				
						ccst}|j}|dkrMxgt|j|D]}|||Vq1Wn;x8|D]0}||}||krT|||VqTqTWdS(sHList unique elements, preserving order. Remember all elements ever seen.N(RtaddRZRt__contains__(titerabletkeytseentseen_addtelementtk((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRs		


cCsOtjj|s|Sddlm}tjdj|}||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.
        (R5R6tisabstdistutils.errorsRttextwraptdedenttlstrip(R6Rtmsg((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyRVs((Rtdistutils.utilRtdistutils.command.build_pytcommandRRR5RzRRmRRpR@tsetuptools.externRtsetuptools.extern.six.movesRRRtsetuptools.lib2to3_exRtImportErrorRZRRV(((s?/usr/lib/python2.7/site-packages/setuptools/command/build_py.pyt<module>s"