Ë
    ±éäg§"  ã                   ó^   — d dl Z d dlZ	 e d„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d„ Zy# e$ r eZY Œw xY w)	é    Nc                 ó   — ddl m}  || «      ‚)Nr   )ÚDistutilsSetupError)Úcffi._shimmed_dist_utilsr   )Úmsgr   s     úQ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/cffi/setuptools_ext.pyÚerrorr   
   s   € Ý<Ù
˜cÓ
"Ð"ó    c                 ó¢   — t        | «      5 }|j                  «       }d d d «       dz  }t        || d«      }t        |||«       y # 1 sw Y   Œ)xY w)Nú
Úexec)ÚopenÚreadÚcompiler   )ÚfilenameÚglobÚfÚsrcÚcodes        r   Úexecfiler      sP   € ô 
ˆh‹ð ˜1Ø�f‰f‹hˆ÷àˆ4�K€CÜ�3˜ &Ó)€DÜˆˆt�TÕ÷	ð ús   ŒAÁAc                 ó´  — ddl m} t        |t        «      s!t	        dt        |«      j                  ›�«       t        |«      }	 |j                  d«      \  }}t        j                  j                  «      sRd}|j                  dd«      d	z   }t        j                  j                  |«      rd
|dz   z   ›d�}t	        |›d|›�«       d|dœ}t        ||«       	 |   }t        |«      s |«       }t        ||«      s$t	        |›dt        |«      j                  ›d�«       t!        |d«      st	        |›d�«       |j"                  \  }	}
}}|j$                  r!|j'                  «       }|j)                  |«       |
€t+        | ||	«       y t-        | ||	|
||«       y # t        $ r t	        |›d�«       Y �Œ^w xY w# t        $ r t	        |›d›d�«       Y Œöw xY w)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Ú
basestringr   Útyper   ÚstrÚsplitÚ
ValueErrorÚosÚpathÚexistsÚreplacer   ÚKeyErrorÚhasattrr!   Ú_windows_unicodeÚcopyÚ_apply_windows_unicodeÚ_add_py_moduleÚ_add_c_module)ÚdistÚmod_specr   Úbuild_file_nameÚffi_var_nameÚextÚ	rewrittenÚmod_varsÚffiÚmodule_nameÚsourceÚsource_extensionÚkwdss                r   Úadd_cffi_moduler@      sÀ  € Ýä�h¤
Ô+ÝÜ ›>×2Ò2ð5ô 	6ä�8‹}€HðØ(0¯©°sÓ(;Ñ%ˆ˜ô �7‰7�>‰>˜/Ô*ØˆØ#×+Ñ+¨C°Ó5¸Ñ=ˆ	Ü�7‰7�>‰>˜)Õ$à˜C‘ ,Ó.ð1ˆCä²ÉÐLÔMà&°OÑD€HÜˆ_˜hÔ'ðDØ�|Ñ$ˆô �c˜3ÔÙ‹eˆÜ�c˜3ÔÜ²hÜ6:¸3³i×6HÓ6HðJô 	Kä�3Ð*Ô+ÜºhÐHÔIØ25×2FÑ2FÑ/€K�Ð)¨4Ø
×ÒØ�y‰y‹{ˆØ×"Ñ" 4Ô(à€~Ü�t˜S +Õ.ä�d˜C ¨fÐ6FÈÕMøôE ò ÜÚð÷ 	ðûô  ò DÜ²XÚ5AðCö 	DðDús$   ÁF ÃF: ÆF7Æ6F7Æ:GÇGc                 óì   — ddl m} d|vrTt        t        d«      sD|j                  r8ddl}	 t        |j                  j                  d«      d   «      }|dk\  rd|d<   |S |S # t        $ r	 d|d<   Y |S w xY w)	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   ©Ú
recompilerÚpy_limited_apiÚgettotalrefcountNr   é   T)
ÚcffirC   r.   ÚsysÚUSE_LIMITED_APIÚ
setuptoolsÚintÚ__version__Ú	partitionr(   )Ú	Extensionr?   rC   rJ   Úsetuptools_major_versions        r   Ú_set_py_limited_apirP   I   s�   € õ"  à Ñ$¬W´SÐ:LÔ-MØ×*Ò*Ûð	*Ü'*¨:×+AÑ+A×+KÑ+KÈCÓ+PÐQRÑ+SÓ'TÐ$Ø'¨2Ò-Ø)-�Ð%Ñ&ð €Kˆ4€Køô ò 	*ð &*ˆDÐ!Ò"Ø€Kð	*ús   ¬1A! Á!A3Á2A3c           	      ó¤  ‡‡‡‡‡
‡‡‡‡‡— ddl m} ddlm}mŠmŠ ddlmŠ dg}|j                  |j                  dg «      «       t        ||«      } |d‰|dœ|¤ŽŠdˆˆˆˆˆˆˆˆfd„	Š| j                  €g | _        | j                  j                  ‰«       | j                  j                  d	|«      Š
 G ˆ
ˆˆfd
„d‰
«      }	|	| j                  d	<   y )Nr   ©Ú	build_ext)rN   ÚlogÚmkpathrB   ú$PLACEHOLDERÚsources)ÚnamerW   c                 óê   •— t         j                  j                  | ‰‰z   «      }‰j                  d|z  «        ‰| «       |�	 |‰‰«       ‰	j	                  ‰‰‰
|«      }|s‰j                  d«       |S ©Nzgenerating cffi module %rzalready up-to-date)r)   r*   ÚjoinÚinfoÚmake_c_source)ÚtmpdirÚpre_runÚc_fileÚupdatedr8   r;   rT   rU   r<   rC   r=   r>   s       €€€€€€€€r   Úmake_modz_add_c_module.<locals>.make_modu   ss   ø€ Ü—‘—‘˜f kÐ4DÑ&DÓEˆØ�‰Ð,¨vÑ5Ô6ÙˆvŒð
 ÐÙ�C˜ÔØ×*Ñ*¨3°¸VÀVÓLˆÙØ�H‰HÐ)Ô*Øˆr	   rS   c                   ó   •— e Zd Zˆ ˆˆfd„Zy)ú)_add_c_module.<locals>.build_ext_make_modc                 ó¦   •— ‰j                   d   dk(  r-t        | dd «      } ‰| j                  |«      ‰j                   d<   ‰j                  | «       y )Nr   rV   r_   )rW   ÚgetattrÚ
build_tempÚrun)Úselfr_   Ú
base_classr8   rb   s     €€€r   rh   z-_add_c_module.<locals>.build_ext_make_mod.runŠ   sE   ø€ Ø�{‰{˜1‰~ Ò/Ü! $¨	°4Ó8�Ù!)¨$¯/©/¸7Ó!C�—‘˜A‘Ø�N‰N˜4Õ r	   N©r   Ú
__module__Ú__qualname__rh   )rj   r8   rb   s   €€€r   Úbuild_ext_make_modrd   ‰   s   ø„ ÷	!r	   rn   © ©N)Úsetuptools.command.build_extrS   r   rN   rT   rU   rG   rC   ÚextendÚpoprP   Úext_modulesÚappendÚcmdclassÚget)r4   r;   r<   r=   r>   r?   rS   rN   Ú
allsourcesrn   rj   r8   rT   rb   rU   rC   s    ````     @@@@@@r   r3   r3   j   s¼   ÿù€ å6ß?Ñ?Ýà Ð!€JØ×Ñ�d—h‘h˜y¨"Ó-Ô.Ü˜y¨$Ó/€DÙ
Ð
A˜¨jÑ
A¸DÑ
A€C÷ô ð ×ÑÐØˆÔØ×Ñ×Ñ˜CÔ à—‘×"Ñ" ;°	Ó:€J÷!ð !˜Zô !ð "4€D‡M�M�+Òr	   c                 óž  ‡‡‡‡‡	‡
‡‡— ddl m} ddlm} ddlmŠ
mŠ ddlmŠ ˆˆ
ˆˆˆfd„Š	| j                  j                  d|«      Š G ˆˆ	ˆfd„d	‰«      }|| j                  d<   | j                  €g | _        | j                  j                  ‰«       | j                  j                  d
|«      Š G ˆˆ	ˆfd„d‰«      }|| j                  d
<   y )Nr   )Úbuild_pyrR   )rT   rU   rB   c                 óÆ   •— ‰j                  d| z  «        ‰t        j                  j                  | «      «       ‰j	                  ‰‰| «      }|s‰j                  d«       y y rZ   )r\   r)   r*   ÚdirnameÚmake_py_source)Úpy_filera   r;   rT   rU   r<   rC   s     €€€€€r   Úgenerate_modz$_add_py_module.<locals>.generate_modœ   sS   ø€ Ø�‰Ð,¨wÑ6Ô7ÙŒr�w‰w�‰˜wÓ'Ô(Ø×+Ñ+¨C°¸gÓFˆÙØ�H‰HÐ)Õ*ð r	   rz   c                   ó(   •— e Zd Zˆ ˆˆfd„Zˆ ˆfd„Zy)ú)_add_py_module.<locals>.build_py_make_modc                 óÄ   •— ‰j                  | «       ‰j                  d«      }|dxx   dz  cc<    ‰t        j                  j                  | j
                  g|¢­Ž «       y )Nr   éÿÿÿÿr   )rh   r'   r)   r*   r[   Ú	build_lib)ri   Úmodule_pathrj   r   r<   s     €€€r   rh   z-_add_py_module.<locals>.build_py_make_mod.run¥   sK   ø€ Ø�N‰N˜4Ô Ø%×+Ñ+¨CÓ0ˆKØ˜‹O˜uÑ$‹OÙœŸ™Ÿ™ d§n¡nÐC°{ÒCÕDr	   c                 ó¨   •— | j                   }	 |r|D �cg c]	  }|‰k7  r|‘Œ c}| _         ‰j                  | «      || _         S c c}w # || _         w xY wrp   )Ú
py_modulesÚget_source_files)ri   Úsaved_py_modulesÚmrj   r<   s      €€r   rˆ   z:_add_py_module.<locals>.build_py_make_mod.get_source_filesª   s]   ø€ ð  $Ÿ™Ðð3Ù#Ø2Bö '>¨QØ,-°Ò,<ò ()ò '>�D”Oà!×2Ñ2°4Ó8à"2�•ùò	'>øð #3�•ús   �A •A£A ÁA Á	AN)r   rl   rm   rh   rˆ   )rj   r   r<   s   €€€r   Úbuild_py_make_modr�   ¤   s   ø„ ö	Eö

	3r	   r‹   rS   c                   ó   •— e Zd Zˆ ˆˆfd„Zy)ú*_add_py_module.<locals>.build_ext_make_modc                 ó,  •— ‰j                  | «       | j                  rv‰j                  d«      }dj                  |d d «      }| j	                  d«      }|j                  |«      }|d   dz   } ‰t        j                  j                  ||«      «       y y )Nr   rƒ   rz   r   )rh   Úinplacer'   r[   Úget_finalized_commandÚget_package_dirr)   r*   )	ri   r…   Úpackagerz   Úpackage_dirÚ	file_nameÚbase_class_2r   r<   s	         €€€r   rh   z._add_py_module.<locals>.build_ext_make_mod.runÆ   s‡   ø€ Ø×Ñ˜TÔ"Ø�|Š|à)×/Ñ/°Ó4�ØŸ(™( ;¨s°Ð#3Ó4�Ø×5Ñ5°jÓA�Ø&×6Ñ6°wÓ?�Ø'¨™O¨eÑ3�	ÙœRŸW™WŸ\™\¨+°yÓAÕBð r	   Nrk   )r•   r   r<   s   €€€r   rn   r�   Å   s	   ø„ ÷		Cr	   rn   )Úsetuptools.command.build_pyrz   rq   rS   r   rT   rU   rG   rC   rv   rw   r‡   ru   )r4   r;   r<   rz   rS   r‹   rn   rj   r•   r   rT   rU   rC   s    ``    @@@@@@r   r2   r2   –   s³   ÿ€ Ý4Ý6ß4Ý÷+ð +ð —‘×"Ñ" :¨xÓ8€J÷3ð 3˜Jô 3ð" !2€D‡M�M�*Ñð ‡�ÐØˆŒØ‡O�O×Ñ˜;Ô'ð —=‘=×$Ñ$ [°)Ó<€L÷
Cð 
C˜\ô 
Cð "4€D‡M�M�+Òr	   c                 ó^   — |dk(  sJ ‚t        |t        «      r|g}|D ]  }t        | |«       Œ y )NÚcffi_modules)r#   r$   r@   )r4   ÚattrÚvalueÚcffi_modules       r   r˜   r˜   Ò   s:   € Ø�>Ò!Ð!Ð!Ü�%œÔ$Ø�ˆàò +ˆÜ˜˜kÕ*ñ+r	   )r)   rH   r$   Ú	NameErrorr&   r   r   r@   rP   r3   r2   r˜   ro   r	   r   ú<module>r�      sR   ðÛ 	Û 
ðÙò
#ò

ò+NòZòB%4òX:4óx+øðY ò à‚Jðús   Š" ¢,«,