File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/command/__pycache__/editable_wheel.cpython-310.pyc
Back
o ;j.� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m Z mZmZ ddl mZ ddlmZ ddlmZ ddlmZmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZm Z d dl!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z' d dl$m(Z( d dl)m*Z*m+Z+ d dl,m-Z- d dl.m/Z/ d dl0m1Z1m2Z2 ddl3m3Z4 ddl5m5Z6 ddl7m7Z8 ddl9m9Z: ddl;m;Z< ddl=m=Z> er�ddl?m@Z@ d dlAmBZB ede(d�ZCe�DeE�ZFG dd � d e�ZGd!ZHd"ZIG d#d$� d$e"�ZJG d%d&� d&e�ZKG d'd(� d(�ZLG d)d*� d*eL�ZMG d+d,� d,�ZNdmd1d2�ZOdnd6d7�ZPdod>d?�ZQd@dA� ZRdpdEdF�ZSdpdGdH�ZTdqdKdL�ZUdrdNdO�ZVdsdQdR�ZWdtdUdV�ZXdudWdX�ZYdvd]d^�ZZdwd`da�Z[G dbdc� dce'j\�Z]ddZ^dxdidj�Z_G dkdl� dle&j`�ZadS )ya� Create a wheel that, when installed, will make the source package 'editable' (add it to the interpreter's path, including metadata) per PEP 660. Replaces 'setup.py develop'. .. note:: One of the mechanisms briefly mentioned in PEP 660 to implement editable installs is to create a separated directory inside ``build`` and use a .pth file to point to that directory. In the context of this file such directory is referred as *auxiliary build directory* or ``auxiliary_dir``. � )�annotationsN)�Iterable�Iterator�Mapping)�suppress)�Enum)�cleandoc)�chain�starmap)�Path)�TemporaryDirectory)� TracebackType)� TYPE_CHECKING�Protocol�TypeVar�cast� )�Command�_normalization�_path�_shutil�errors� namespaces)�StrPath)�py310�py312��find_package_path)�Distribution)�InformationOnly�SetuptoolsDeprecationWarning� )�build)�build_py)� dist_info)�egg_info)�install)�install_scripts)�Self�� WheelFile�_P)�boundc @ s* e Zd ZdZdZdZdZeddd ��Zd S )� _EditableModea Possible editable installation modes: `lenient` (new files automatically added to the package - DEFAULT); `strict` (requires a new installation when files are added/removed); or `compat` (attempts to emulate `python setup.py develop` - DEPRECATED). �strictZlenient�compat�mode� str | None�returnc C sN |st jS |�� }|t jvrt�d|�d���|dkr#tjdddd� t | S )NzInvalid editable mode: z. Try: 'strict'.�COMPATzCompat editable installsa The 'compat' editable mode is transitional and will be removed in future versions of `setuptools`. Please adapt your code accordingly to use either the 'strict' or the 'lenient' modes. zuserguide/development_mode.html)Zsee_docs)r- �LENIENT�upper�__members__r ZOptionErrorr �emit)�clsr0 �_mode� r: �U/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/command/editable_wheel.py�convertA s �z_EditableMode.convertN)r0 r1 r2 r- ) �__name__� __module__�__qualname__�__doc__�STRICTr4 r3 �classmethodr<