Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
install_scripts.cpython-313.pyc25 linesDownload Raw Back to __pycache__
1�

2`j�	���SSKJr SSKrSSKrSSKJr SSKJr SSKJ	s J3r SSKJ
r
 "SS\R5r4g)	�)�annotationsN�)�ensure_directory)�Distribution)�logc�L�\rSrSr%SrS\S'SSjrSSjrSrSS
Sjjr	S	r5g6)�install_scripts�
z;Do normal script install, plus any egg_info wrapper scriptsr�distributionc�P�[RRU5 SUlg)NF)�origr	�initialize_options�no_ep��selfs �TD:\code\apps\devtools\python\Lib\site-packages\setuptools/command/install_scripts.pyr�"install_scripts.initialize_optionss�����/�/��5���7�c���URS5 URR(a [RRU5 O/UlUR(agUR5 g)N�egg_info)	�run_commandr�scriptsr
r	�run�outfilesr�_install_ep_scriptsrs rr�install_scripts.runsP������$����$�$�� � �$�$�T�*�')�D�M��:�:��� � �"rc���SSKJn SSKJn UR	S5nUR8R
URS9nUR	S5n[USS5nURnU[R:XaU/nUR5nURR5RU5nURXHR!55Hn	UR""U	6 M g)Nr)�_scripts)�metadatar)�path�
build_scripts�9executable)�r�10_importlibr�get_finalized_commandr�atr�getattr�ScriptWriter�sysr"�best�command_spec_class�11from_param�get_args�	as_header�write_script)12rrr�ei_cmd�dist�bs_cmd�13exec_param�writer�cmd�argss14          rr�#install_scripts._install_ep_scripts!s����)��+�+�J�7���$�$�'�'�V�_�_�'�=���+�+�O�<���V�\�4�8�15��&�&������'�%��J�������'�'�,�,�.�9�9�*�E���O�O�D�-�-�/�:�D����t�$�;rc��SSKJnJn [R"SXR165 [RRUR17U5nURRU5 SU;aSOSnU"5n	[U5 [USU-US9n18U19RU5 SSS5 U"US	U	-205 g!,(df   N=f)21z1Write an executable file to the scripts directoryr)�attempt_chmod_verbose�
current_umaskzInstalling %s script to %s�bNzutf-8�w)�encodingi�)�_shutilr9r:r�info�install_dir�osr �joinr�appendr�open�write)r�script_name�contents�mode�ignored�chmodr:�targetr=�mask�fs           rr/�install_scripts.write_script5s���K����-�{�<L�<L�M������d�.�.��<���
�
���V�$��$�;�4�G������� �
�&�#��*�x�
8�A�
�G�G�H��9�
�f�e�d�l�#�9�
8�s�C�22C)rrN)�return�None)�t)rH�strrOrP)�__name__�23__module__�__qualname__�__firstlineno__�__doc__�__annotations__rrrr/�__static_attributes__�rrr	r	
s$��E����	#�%�(
$�
$rr	)�24__future__rrAr)�_pathrr1r�!distutils.command.install_scripts�commandr	r
�	distutilsrrZrr�<module>r`s/��"�	�25�$��0�0��5$�d�*�*�5$r
codekingpro/portable-devtools · Team Ai