Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
contego / home / tvault / .virtenv / lib / python2.7 / site-packages / cffi / setuptools_ext.pyc
Size: Mime:
ó
=–[c@s}ddlZddlZyeWnek
r9eZnXd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZdS(	iÿÿÿÿNcCs ddlm}||ƒ‚dS(Niÿÿÿÿ(tDistutilsSetupError(tdistutils.errorsR(tmsgR((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyterror
scBsKe|ƒ}|jƒ}WdQX|d7}e||dƒ}|||UdS(Ns
texec(topentreadtcompile(tfilenametglobtftsrctcode((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pytexecfiles

c
Cs/ddlm}t|tƒs<tdt|ƒjfƒnt|ƒ}y|jdƒ\}}Wn"t	k
r…td|fƒnXt
jj|ƒsõd}|j
ddƒd	}t
jj|ƒrÞd
|d|f}ntd||fƒnidd
6|d6}t||ƒy||}Wn%tk
rKtd||fƒnXt||ƒsg|ƒ}nt||ƒs–td|t|ƒjfƒnt|dƒs¹td|fƒn|j\}	}
}}|jró|jƒ}|j|ƒn|
dkrt|||	ƒnt|||	|
||ƒdS(Niÿÿÿÿ(tFFIsEargument to 'cffi_modules=...' must be a str or a list of str, not %rt:s3%r must be of the form 'path/build.py:ffi_variable'tt.t/s.pys (rewrite cffi_modules to [%r])s#%r does not name an existing file%st__cffi__t__name__t__file__s!%r: object %r not found in modules"%r is not an FFI instance (got %r)t_assigned_sources*%r: the set_source() method was not called(tcffi.apiRt
isinstancet
basestringRttypeRtstrtsplitt
ValueErrortostpathtexiststreplaceR
tKeyErrorthasattrRt_windows_unicodetcopyt_apply_windows_unicodetNonet_add_py_modulet
_add_c_module(
tdisttmod_specRtbuild_file_nametffi_var_nametextt	rewrittentmod_varstffitmodule_nametsourcetsource_extensiontkwds((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pytadd_cffi_modulesL


			cCs•d|kr‘ttdƒr‘tjdkr‘ddl}y9t|jjdƒdƒ}|dkrot|d<nWq‘tk
rt|d<q‘Xn|S(	sÁ
    Add py_limited_api to kwds if setuptools >= 26 is in use.
    Do not alter the setting if it already exists.
    Setuptools takes care of ignoring the flag on Python 2 and PyPy.

    CPython itself should ignore the flag in a debugging version
    (by not listing .abi3.so in the extensions it supports), but
    it doesn't so far, creating troubles.  That's why we check
    for "not hasattr(sys, 'gettotalrefcount')" (the 2.7 compatible equivalent
    of 'd' not in sys.abiflags). (http://bugs.python.org/issue28401)

    On Windows, it's better not to use py_limited_api until issue #355
    can be resolved (by having virtualenv copy PYTHON3.DLL).  See also
    the start of _cffi_include.h.
    tpy_limited_apitgettotalrefcounttwin32iÿÿÿÿNRii(	R#tsystplatformt
setuptoolstintt__version__t	partitiontTrueR(t	ExtensionR5R<tsetuptools_major_version((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyt_set_py_limited_apiIs
c
	s3ddlm}ddlm}ddlm‰ddlm‰ddlm	‰dg}|j
|jdgƒƒt||ƒ}|d	ˆd||‰d‡‡‡‡‡‡‡‡	fd
†‰|jdkrÛg|_n|jjˆƒ|jjd|ƒ‰dˆf‡‡‡fd
†ƒY}	|	|jd<dS(Niÿÿÿÿ(RA(t	build_ext(tmkpath(tlog(t
recompilers$PLACEHOLDERtsourcestnamecs‚tjj|ˆˆƒ}ˆjd|ƒˆ|ƒ|dk	rP|ˆˆƒnˆjˆˆˆ|ƒ}|s~ˆjdƒn|S(Nsgenerating cffi module %rsalready up-to-date(RRtjointinfoR't
make_c_source(ttmpdirtpre_runtc_filetupdated(R.R1RFRER2RGR3R4(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pytmake_modts
RDtbuild_ext_make_modcseZ‡‡‡fd†ZRS(csRˆjddkrAt|ddƒ}ˆ|j|ƒˆjd<nˆj|ƒdS(Nis$PLACEHOLDERRN(RHtgetattrR't
build_temptrun(tselfRN(t
base_classR.RQ(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRU‰s(Rt
__module__RU((RWR.RQ(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRRˆs(tdistutils.coreRAtsetuptools.command.build_extRDtdistutils.dir_utilREt	distutilsRFtcffiRGtextendtpopRCR'text_modulestappendtcmdclasstget(
R*R1R2R3R4R5RARDt
allsourcesRR((
RWR.R1RFRQRER2RGR3R4sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyR)gs 	'"cs"ddlm‰ddlm}ddlm}ddlm‰ddlm	‰‡‡‡‡‡fd†‰|j
jd|ƒ‰d	ˆf‡‡‡fd
†ƒY}||j
d<|jdkrÊg|_n|jjˆƒ|j
jd|ƒ‰dˆf‡‡‡fd
†ƒY}||j
d<dS(Niÿÿÿÿ(RE(tbuild_py(RD(RF(RGcsVˆjd|ƒˆtjj|ƒƒˆjˆˆ|ƒ}|sRˆjdƒndS(Nsgenerating cffi module %rsalready up-to-date(RKRRtdirnametmake_py_source(tpy_fileRP(R1RFRER2RG(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pytgenerate_modœs
Retbuild_py_make_modcseZ‡‡‡fd†ZRS(csLˆj|ƒˆjdƒ}|dcd7<ˆtjj|j|ŒƒdS(NRiÿÿÿÿs.py(RURRRRJt	build_lib(RVtmodule_path(RWRiR2(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRU¥s
(RRXRU((RWRiR2(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRj¤sRDRRcseZ‡‡‡fd†ZRS(cs„ˆj|ƒ|jr€ˆjdƒ}dj|d ƒ}|jdƒ}|j|ƒ}|dd}ˆtjj||ƒƒndS(NRiÿÿÿÿRes.py(RUtinplaceRRJtget_finalized_commandtget_package_dirRR(RVRltpackageRetpackage_dirt	file_name(tbase_class_2RiR2(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRUºs
	(RRXRU((RsRiR2(sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRR¹s(R[REtsetuptools.command.build_pyReRZRDR\RFR]RGRbRct
py_modulesR'Ra(R*R1R2ReRDRjRR((RWRsR1RiRFRER2RGsH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyR(•s"
	"cCsO|dkst‚t|tƒr-|g}nx|D]}t||ƒq4WdS(Ntcffi_modules(tAssertionErrorRRR6(R*tattrtvaluetcffi_module((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyRvÆs

(RR:Rt	NameErrorRRR
R6RCR)R(Rv(((sH/home/tvault/.virtenv/lib/python2.7/site-packages/cffi/setuptools_ext.pyt<module>s

		
	-		.	1