Xj^%fddlZddlZddlZ edZdZdZdZ dZ dZ dZ y#e$reZYwxYw) Ncddlm}||)Nr)DistutilsSetupError)cffi._shimmed_dist_utilsr)msgrs g/mnt/ssd/data/Dropbox/adrian/vault-secondbrain/venv/lib/python3.12/site-packages/cffi/setuptools_ext.pyerrorr s< c ""ct|5}|j}ddddz }t||d}t|||y#1swY)xYw)N exec)openreadcompiler )filenameglobfsrccodes rexecfilersP h1ffh4KC 3& )DtT s AAcddlm}t|ts!t dt |j t|} |jd\}}tjjsRd}|jddd z}tjj|r d |dzzd }t |d |d |d}t|| |}t|s|}t||s$t |dt |j dt!|dst |d|j"\} } } } |j$r!| j'} |j)| | t+||| yt-||| | | | y#t$rt |dY^wxYw#t$rt |ddYwxYw)Nr)FFIzCargument to 'cffi_modules=...' must be a str or a list of str, not :z1 must be of the form 'path/build.py:ffi_variable'./.pyz (rewrite cffi_modules to [z])z does not name an existing file__cffi__)__name____file__z : object z not found in modulez is not an FFI instance (got )_assigned_sourcez(: the set_source() method was not called)cffi.apir isinstance basestringrtyperstrsplit ValueErrorospathexistsreplacerKeyErrorhasattrr!_windows_unicodecopy_apply_windows_unicode_add_py_module _add_c_module) distmod_specrbuild_file_name ffi_var_nameext rewrittenmod_varsffi module_namesourcesource_extensionkwdss radd_cffi_moduler@s h + >225 68}H(0s(;% 77>>/ *#++C5= 77>>) $C,.1C LM&ODH _h'D|$ c3 e c3  h6:3i6H6HJ K 3* + hHI252F2F/K)4 yy{ ""4( ~tS+.dCf6FME    D X5AC DDs$FF:F76F7:GGc<ddlm}ddlm}d|vrRt t dsB|j r6ddl} t|jjdd}|dk\rd |d<tjd r\t jd kr(|jdr|j!d d |d<n!|j#dgj%d|jdd ur!|j#dgj%d|S#t$rd |d<YwxYw)a7 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, with CPython <= 3.4, it's better not to use py_limited_api because virtualenv *still* doesn't copy PYTHON3.DLL on these versions. Recently (2020) we started shipping only >= 3.5 wheels, though. So we'll give it another try and set py_limited_api on Windows >= 3.5. r)log recompilerpy_limited_apigettotalrefcountNrTPy_GIL_DISABLED)z5Ignoring py_limited_api=True for free-threaded build.F define_macros)Py_TARGET_ABI3T 0x030f0000)_CFFI_NO_LIMITED_APIN)rrBcffirDr.sysUSE_LIMITED_API setuptoolsint __version__ partitionr( sysconfigget_config_var version_infogetinfo setdefaultappend) Extensionr?rBrDrRsetuptools_major_versions r_set_py_limited_apir_Js"-$WS:L-M** *'*:+A+A+K+KC+PQR+S'T $'2-)-%& 12   g %xx()PQ%*D! " OOOR 0 7 78Y Z xx !U* ,334RS K% *&*D! "  *s1D DDc  ddlm}ddlm}m mddlmdg}|j|jdgt||}|d |d| d  fd |jg|_ |jj |jjd | G fd d } | |jd <y)Nr build_ext)r]rBmkpathrC $PLACEHOLDERsources)namerectjj| z}jd|z|| | j  |}|sjd|SNzgenerating cffi module %rzalready up-to-date)r)r*joinrZ make_c_source) tmpdirpre_runc_fileupdatedr8r;rBrcr<rDr=r>s rmake_modz_add_c_module..make_modssfk4D&DE ,v56v   C **3 VVL HH) * r rbceZdZfdZy))_add_c_module..build_ext_make_modcjddk(r-t|dd}|j|jd<j|y)Nrrdrl)regetattr build_temprun)selfrl base_classr8ros rruz-_add_c_module..build_ext_make_mod.runsE{{1~/!$ 48!)$//7!C A NN4 r Nr __module__ __qualname__ru)rwr8rosrbuild_ext_make_modrqs !r r{N)setuptools.command.build_extrbrr]rBrcrOrDextendpopr_ ext_modulesr\cmdclassrY)r4r;r<r=r>r?rbr] allsourcesr{rwr8rBrorcrDs ```` @@@@@@rr3r3ys6?? !Jdhhy"-. y$ /D  Aj AD AC   C ""; :J!!Z! "4DMM+r c ddlm}ddlm}ddlm m ddlm   fd |jjd|G fdd }||jd<|jg|_ |jj|jjd |G fd d }||jd <y) Nr)build_pyra)rBrcrCcjd|ztjj|j |}|sjdyyrh)rZr)r*dirnamemake_py_source)py_filernr;rBrcr<rDs r generate_modz$_add_py_module..generate_modsS ,w67rwww'(++CgF HH) *r rc(eZdZfdZfdZy))_add_py_module..build_py_make_modcj|jd}|dxxdz cc<tjj|j g|y)Nrr)rur'r)r*ri build_lib)rv module_pathrwrr<s rruz-_add_py_module..build_py_make_mod.runsK NN4 %++C0K Ou $O dnnC{C Dr c|j} |r|Dcgc] }|k7r| c}|_j|||_Scc}w#||_wxYwr}) py_modulesget_source_files)rvsaved_py_modulesmrwr<s rrz:_add_py_module..build_py_make_mod.get_source_filess] $  3#2B'>Q,-,<()'>DO!2248"2 '>#3sAAAA AN)rryrzrur)rwrr<srbuild_py_make_modrs E 3r rrbceZdZfdZy)*_add_py_module..build_ext_make_modc,j||jrvjd}dj|dd}|j d}|j |}|ddz}t jj||yy)Nrrrr)ruinplacer'riget_finalized_commandget_package_dirr)r*) rvrpackager package_dir file_name base_class_2rr<s rruz._add_py_module..build_ext_make_mod.runs   T "||)//4 ((;s#3455jA&66w? 'Oe3 RWW\\+yABr Nrx)rrr<srr{rs  Cr r{) setuptools.command.build_pyrr~rbrrBrcrOrDrrYrr\) r4r;r<rrbrr{rwrrrBrcrDs `` @@@@@@rr2r2s464++"":x8J33J3"!2DMM* OO;'==$$[) !! !%$+ k*+r ) r)rPrVr$ NameErrorr&rrr@r_r3r2rr|r rrsU  # +NZ-^%4X:4x+uJs &00