Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/command/__pycache__/develop.cpython-311.pyc

�

�܋f����ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZddl
mZddl
m
Z
ddl
Z
d	d
lmZGd�de
je	��ZGd
�d��ZdS)�)�convert_path)�log)�DistutilsOptionErrorN)�easy_install)�_normalization)�_path)�
namespaces�)�_read_utf8_with_fallbackc��eZdZdZdZejddgzZejdgzZdZd�Z	d�Z
d	�Zed
���Z
d�Zd�Zd
�Zd�ZdS)�developzSet up package for developmentz%install package in 'development mode')�	uninstall�uzUninstall this source package)z	egg-path=Nz-Set the path to be used in the .egg-link filerFc���|jr0d|_|���|���n|���|���dS)NT)r�
multi_version�uninstall_link�uninstall_namespaces�install_for_development�warn_deprecated_options��selfs �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/develop.py�runzdevelop.runse���>�	+�!%�D�����!�!�!��%�%�'�'�'�'��(�(�*�*�*��$�$�&�&�&�&�&�c�f�d|_d|_tj|��d|_d|_dS)N�.)r�egg_pathr�initialize_options�
setup_path�always_copy_fromrs rrzdevelop.initialize_options's6�������
��'��-�-�-���� #����rc	��ddl}|�d��}|jg|_t	j|��|���|���|j�	tj
d����tj|j��dz}tj�|j|��|_|j|_|j�)tj�|j��|_t+j|j��}t+jtj�|j|j����}||krt/d|z���|�||�|tj�|j����|j���|_|�|j|j|j��|_dS)Nr�egg_infoz*.eggz	.egg-linkzA--egg-path must be a relative path from the install directory to ��project_name)�
pkg_resources�get_finalized_command�egg_name�argsr�finalize_options�expand_basedirs�expand_dirs�
package_index�scan�globr�filename_component_broken�os�path�join�install_dir�egg_link�egg_baser�abspathr�normpathr�Distribution�PathMetadatar"�dist�_resolve_setup_pathr)rr%�ei�egg_link_fn�targetrs      rr)zdevelop.finalize_options.s�������
�
'�
'�
�
3�
3���[�M��	��%�d�+�+�+������������������	�'� 2� 2�3�3�3�
�4�R�[�A�A�K�O�	�����T�%5�{�C�C��
����
��=� ��G�O�O�B�K�8�8�D�M����
�.�.���>�"�'�,�,�t�/?���"O�"O�P�P���v���&�!�#)�*���
�"�.�.���&�&�v�r�w���r�{�/K�/K�L�L���/�
�
��	��2�2��M����M�
�
����rc��|�tjd���d��}|tjkrd|�d��dzz}t
jtj�	|||����}t
jtj��}||krtd||���|S)z�
        Generate a path from egg_base back to '.' where the
        setup script resides and ensure that path points to the
        setup path from $install_dir/$egg_path.
        �/z../�zGCan't get a consistent path to setup script from installation directory)�replacer0�sep�rstrip�curdir�countrr7r1r2r)r5r3r�
path_to_setup�resolvedrEs      rr;zdevelop._resolve_setup_pathWs���!�(�(����5�5�<�<�S�A�A�
��B�I�%�%�!�]�%8�%8��%=�%=��%A�B�M��>�"�'�,�,�{�H�m�"T�"T�U�U�����	�*�*���v���&�*���	��
��rc�X�|�d��|�dd���|�d��tjr+|�tj��dt_|���t
jd|j|j	��|j
sTt|jdd���5}|�|j
d	z|jz��ddd��n#1swxYwY|�d|j|j��dS)
Nr"�	build_extT)�inplacezCreating %s (link to %s)�wzutf-8)�encoding�
)�run_command�reinitialize_command�
setuptools�bootstrap_install_fromr�install_namespacesr�infor4r5�dry_run�open�writerr�process_distributionr:�no_deps)r�fs  rrzdevelop.install_for_developmentlsg������$�$�$�	
�!�!�+�t�!�<�<�<�����%�%�%��,�	5����j�?�@�@�@�04�J�-����!�!�!�	��+�T�]�D�M�J�J�J��|�	@��d�m�S�7�;�;�;�
@�q�����
��,�t��>�?�?�?�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@����
@�
@�
@�
@�	
�!�!�$��	�t�|�3C�D�D�D�D�Ds�&C=�=D�Dc��tj�|j��r�t	jd|j|j��d�t|j�����D��}||j	g|j	|j
gfvrt	jd|��dS|jstj
|j��|js|�|j��|jjrt	jd��dSdS)NzRemoving %s (link to %s)c�6�g|]}|�����S�)rD)�.0�lines  r�
<listcomp>z*develop.uninstall_link.<locals>.<listcomp>�s0���������
�
���rz$Link points to %s: uninstall abortedz5Note: you must uninstall or replace scripts manually!)r0r1�existsr4rrTr5r�
splitlinesrr�warnrU�unlink�
update_pthr:�distribution�scripts)r�contentss  rrzdevelop.uninstall_link�s
��
�7�>�>�$�-�(�(�	)��H�/����
�N�N�N���4�T�]�C�C�N�N�P�P����H�
����$�-���1Q�R�R�R���?��J�J�J����<�
)��	�$�-�(�(�(��|�	'��O�O�D�I�&�&�&���$�	N��H�L�M�M�M�M�M�	N�	Nrc�r�||jurtj||��S|�|��|jjpgD]t}tj�t|����}tj�
|��}t|��}|�||||���udS�N)
r:r�install_egg_scripts�install_wrapper_scriptsrfrgr0r1r6r�basenamer�install_script)rr:�script_name�script_path�script_texts     rrkzdevelop.install_egg_scripts�s����t�y� � ��3�D�$�?�?�?�
	
�$�$�T�*�*�*� �,�4�:��	M�	M�K��'�/�/�,�{�*C�*C�D�D�K��'�*�*�;�7�7�K�2�;�?�?�K�����k�;��L�L�L�L��trc�J�t|��}tj||��Srj)�VersionlessRequirementrrl�rr:s  rrlzdevelop.install_wrapper_scripts�s"��%�d�+�+���3�D�$�?�?�?rN)�__name__�
__module__�__qualname__�__doc__�descriptionr�user_options�boolean_options�command_consumes_argumentsrrr)�staticmethodr;rrrkrlr]rrr
r
s�������(�(�9�K��,�;�L�0��L�
#�2�k�]�B�O�!&��'�'�'�$�$�$�'
�'
�'
�R����\��(E�E�E�,N�N�N�(���&@�@�@�@�@rr
c�$�eZdZdZd�Zd�Zd�ZdS)rsa�
    Adapt a pkg_resources.Distribution to simply return the project
    name as the 'requirement' so that scripts will work across
    multiple versions.

    >>> from pkg_resources import Distribution
    >>> dist = Distribution(project_name='foo', version='1.0')
    >>> str(dist.as_requirement())
    'foo==1.0'
    >>> adapted_dist = VersionlessRequirement(dist)
    >>> str(adapted_dist.as_requirement())
    'foo'
    c��||_dSrj)�_VersionlessRequirement__distrts  r�__init__zVersionlessRequirement.__init__�s
������rc�,�t|j|��Srj)�getattrr�)r�names  r�__getattr__z"VersionlessRequirement.__getattr__�s���t�{�D�)�)�)rc��|jSrjr#rs r�as_requirementz%VersionlessRequirement.as_requirement�s��� � rN)rurvrwrxr�r�r�r]rrrsrs�sK�����������*�*�*�!�!�!�!�!rrs)�distutils.utilr�	distutilsr�distutils.errorsrr0r.�setuptools.command.easy_installrrQrrr	�
unicode_utilsr�DevelopInstallerr
rsr]rr�<module>r�s%��'�'�'�'�'�'�������1�1�1�1�1�1�	�	�	�	�����8�8�8�8�8�8�%�%�%�%�%�%�������!�!�!�!�!�!�����4�4�4�4�4�4�[@�[@�[@�[@�[@�j�)�<�[@�[@�[@�|!�!�!�!�!�!�!�!�!�!r

Hacked By AnonymousFox1.0, Coded By AnonymousFox