+
    Ž°³jÏ  ã                   óª   € R t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIH	t	 ^RI
Ht ^RIHt ^RIHt ]P                   ! R4      t ]t ! R	 R
]4      tR# )zRdistutils.command.build_scripts

Implements the Distutils 'build_scripts' command.N)Úlog)ÚST_MODE)ÚClassVar)Únewer)ÚCommand)Úconvert_pathz^#!.*python[0-9.]*([ 	].*)?$c                   ó~   a € ] tR t^t o Rt. ROtR.tR tR tR t	R t
R tR tR	 tR
 t]R 4       tV 3R ltRtV tR# )Úbuild_scriptsz("build" scripts (copy and fixup #! line)Úforcec                ó>   € R V n         R V n        R V n        R V n        R # ©N)Ú	build_dirÚscriptsr
   Ú
executable©Úselfs   &Úl/home/luca/screen-checking/.venv/lib/python3.14/site-packages/setuptools/_distutils/command/build_scripts.pyÚinitialize_optionsÚ build_scripts.initialize_options$   s   € ØˆŒØˆŒØˆŒ
ØˆŽó    c                ód   € V P                  R RRR4       V P                  P                  V n        R# )ÚbuildN)r	   r   )r
   r
   )r   r   )Úset_undefined_optionsÚdistributionr   r   s   &r   Úfinalize_optionsÚbuild_scripts.finalize_options*   s1   € Ø×"Ñ"ØØ*ØØ(ô		
ð ×(Ñ(×0Ñ0ˆŽr   c                ó   € V P                   # r   )r   r   s   &r   Úget_source_filesÚbuild_scripts.get_source_files3   s   € Ø�|‰|Ðr   c                óN   € V P                   '       g   R # V P                  4        R # r   )r   Úcopy_scriptsr   s   &r   ÚrunÚbuild_scripts.run6   s   € Ø�|�|ˆ|ÙØ×ÑÖr   c                ó²   € V P                  V P                  4       . p. pV P                   F  pV P                  W1V4       K  	  V P	                  V4       W3# )a  
Copy each script listed in ``self.scripts``.

If a script is marked as a Python script (first line matches
'shebang_pattern', i.e. starts with ``#!`` and contains
"python"), then adjust in the copy the first line to refer to
the current Python interpreter.
)Úmkpathr   r   Ú_copy_scriptÚ_change_modes)r   ÚoutfilesÚupdated_filesÚscripts   &   r   r    Úbuild_scripts.copy_scripts;   sU   € ð 	�‰�D—N‘NÔ#ØˆØˆØ—l”lˆFØ×Ñ˜f°Ö>ñ #ð 	×Ñ˜8Ô$àÐ&Ð&r   c           	     ót  € R p\        V4      p\        P                  P                  V P                  \        P                  P                  V4      4      pVP                  V4       V P                  '       g+   \        W4      '       g   \        P                  ! RV4       R # \        P                  ! V4      ;_uu_ 4       pVP                  4       pV'       g    V P                  V R24        R R R 4       R # \        P!                  V4      pVP                  V4       V'       dÓ   \        P"                  ! RWP                  4       VP%                  ^4      ;'       g    RpRV P&                  ,           V,           R,           p	V P)                  W–P*                  4       \        VRVP*                  R7      ;_uu_ 4       p
V
P-                  V	4       V
P/                  VP1                  4       4       R R R 4       MV P3                  W4       R R R 4       R #   + '       g   i     L; i  + '       g   i     R # ; i)	Nznot copying %s (up-to-date)z is an empty file (skipping)zcopying and adjusting %s -> %sÚ z#!Ú
Úw)Úencoding)r   ÚosÚpathÚjoinr   ÚbasenameÚappendr
   r   r   ÚdebugÚtokenizeÚopenÚreadlineÚwarnÚshebang_patternÚmatchÚinfoÚgroupr   Ú_validate_shebangr/   ÚwriteÚ
writelinesÚ	readlinesÚ	copy_file)r   r)   r'   r(   Úshebang_matchÚoutfileÚfÚ
first_lineÚpost_interpÚshebangÚoutfs   &&&&       r   r%   Úbuild_scripts._copy_scriptN   s‡  € ØˆÜ˜fÓ%ˆÜ—'‘'—,‘,˜tŸ~™~¬r¯w©w×/?Ñ/?ÀÓ/GÓHˆØ�‰˜Ô à�z�zˆz¤%¨×"8Ò"8Ü�IŠIÐ3°VÔ<Ùô �]Š]˜6×"Ô" aØŸ™›ˆJßØ—	‘	˜V˜HÐ$@ÐAÔBØ÷	 #Ñ"ô ,×1Ñ1°*Ó=ˆMà× Ñ  Ô)ßÜ—’Ð9¸6Ç>Á>ÔRØ+×1Ñ1°!Ó4×:Ð:¸�Ø §¡Õ0°;Õ>ÀÕE�Ø×&Ñ& w·
±
Ô;Ü˜' 3°·±×<Õ<ÀØ—J‘J˜wÔ'Ø—O‘O A§K¡K£MÔ2÷ =Ð<ð —‘˜vÔ/÷% #Ñ"÷ =×<ú÷ #×"Ð"ús7   Ã .H&Ã8-H&Ä&8H&ÅAH&Æ>1H	Ç/H&ÈH#ÈH&È&H7	c                óh   € \         P                  R 8w  d   R# V F  pV P                  V4       K  	  R# )ÚposixN)r0   ÚnameÚ_change_mode)r   r'   Úfiles   && r   r&   Úbuild_scripts._change_modesn   s)   € Ü�7‰7�gÔÙãˆDØ×Ñ˜dÖ#ó r   c                óâ   € \         P                  ! V4      \        ,          R ,          pVR,          R ,          pW28w  d1   \        P                  ! RWV4       \         P
                  ! W4       R# R# )iÿ  im  z!changing mode of %s from %o to %oN)r0   Ústatr   r   r<   Úchmod)r   rO   ÚoldmodeÚnewmodes   &&  r   rN   Úbuild_scripts._change_modeu   sO   € Ü—'’'˜$“-¤Õ(¨6Õ1ˆØ˜U•? fÕ,ˆØÔÜ�HŠHÐ8¸$ÈÔQÜ�HŠH�TÖ#ñ r   c                óÐ   €  V P                  R 4        T P                  T4       R#   \         d    \        RT : R24      hi ; i  \         d    \        RT : RT R24      hi ; i)zutf-8zThe shebang (z) is not encodable to utf-8z+) is not encodable to the script encoding (Ú)N)ÚencodeÚUnicodeEncodeErrorÚ
ValueError)rH   r/   s   &&r   r>   Úbuild_scripts._validate_shebang|   s‚   € ð	UØ�N‰N˜7Ô#ð	Ø�N‰N˜8Ö$øô "ô 	UÜ˜}¨W©KÐ7RÐSÓTÐTð	Uûô "ô 	ÜØ ™{ð ++Ø+3¨*°Að7óð ð	ús   ‚' ”A §AÁA%c                óŒ   <€ V ^8„  d   Qh/ S[ S[S[S[S[S[3,          ,          ,          ;R&   S[ S[S[,          ,          ;R&   # )é   Úuser_optionsÚboolean_options)r   ÚlistÚtupleÚstr)ÚformatÚ__classdict__s   "€r   Ú__annotate__Úbuild_scripts.__annotate__   s?   ø‡ ‚ ñ ™4¡¡c©3± mÕ 4Õ5Õ6ñ ñ ñ ™d¡3�iÕ(Ñ4ò r   )r   r   r
   r   N))z
build-dir=Údzdirectory to "build" (copy) to)r
   rE   z1forcibly build everything (ignore file timestamps)zexecutable=Úez*specify final destination interpreter path)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Údescriptionr_   r`   r   r   r   r!   r    r%   r&   rN   Ústaticmethodr>   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__)re   s   @r   r	   r	      s_   ø‡ € Ø>€Kò:€Lð -4¨9€Oòò1òòò
'ò&0ò@$ò$ð ñó ð÷I ƒ r   r	   )Ú__doc__r0   Úrer6   Údistutils._logr   rR   r   Útypingr   Ú	_modifiedr   Úcorer   Úutilr   Úcompiler:   Úfirst_line_rer	   © r   r   Ú<module>r}      sP   ðñ5ó 
Û 	Û Ý Ý Ý å Ý Ý à—*’*Ð<Ó=€ðð
  €ôx�Gö xr   