Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
usr
/
local
/
lib
/
python3.6
/
site-packages
/
setuptools
/
command
/
__pycache__
✏️
Editing: easy_install.cpython-36.pyc
3 ���e�N � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlmZmZm Z m Z ddlmZm Z ddlmZmZ ddlmZ dd lmZ dd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd l Z dd l!Z!dd l"Z"dd l#Z#dd l$Z$dd l%Z%dd l&Z&ddl'm(Z(m)Z) ddl*m+Z+ dd l*m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5m6Z6 ddl/m7Z7m8Z8 ddl9m:Z: ddl;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJ dd l;Z;ejKde;jLd� dddddgZMdd� ZNdd� ZOdd � ZPd!d"� ZQd#d$� ZRG d%d� de,�ZSd&d'� ZTd(d)� ZUd*d+� ZVd,d� ZWd-d� ZXG d.d� deB�ZYG d/d0� d0eY�ZZej[j\d1d2�d3k�r�eZZYd4d5� Z]d6d7� Z^d8d9� Z_d:d;� Z`dhd<d=�Zad>d?� Zbd@dA� ZcdBejdk�r�ecZendCdD� ZedidFdG�ZfdHdI� ZgdJdK� ZhdLdM� ZiyddNlmjZk W n elk �r. dOdP� ZkY nX dQdR� ZjG dSdT� dTem�Znenjo� ZpG dUdV� dVen�ZqG dWdX� dX�ZrG dYdZ� dZer�ZsG d[d\� d\es�ZterjuZuerjvZvd]d^� Zwd_d`� Zxdae^fdbdc�Zyddde� ZzG dfdg� dge+�Z{d S )ja) Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ https://setuptools.pypa.io/en/latest/deprecated/easy_install.html � )�glob)�get_platform)�convert_path� subst_vars)�DistutilsArgError�DistutilsOptionError�DistutilsError�DistutilsPlatformError)�INSTALL_SCHEMES�SCHEME_KEYS)�log�dir_util)� first_line_re)�find_executableN)�get_config_vars�get_path)�SetuptoolsDeprecationWarning)�Command)� run_setup)�setopt)�unpack_archive)�PackageIndex�parse_requirement_arg� URL_SCHEME)� bdist_egg�egg_info)�Wheel)�yield_lines�normalize_path�resource_string�ensure_directory�get_distribution�find_distributions�Environment�Requirement�Distribution�PathMetadata�EggMetadata� WorkingSet�DistributionNotFound�VersionConflict�DEVELOP_DIST�default)�category�samefile�easy_install�PthDistributions�extract_wininst_cfg�get_exe_prefixesc C s t jd�dkS )N�P� )�struct�calcsize� r7 r7 �E/tmp/pip-build-vlmub77e/setuptools/setuptools/command/easy_install.py�is_64bitJ s r9 c C sj t jj| �ot jj|�}tt jd�o&|}|r:t jj| |�S t jjt jj| ��}t jjt jj|��}||kS )z� Determine if two paths reference the same file. Augments os.path.samefile to work on Windows and suppresses errors if the path doesn't exist. r. )�os�path�exists�hasattrr. �normpath�normcase)�p1�p2Z both_existZuse_samefileZnorm_p1Znorm_p2r7 r7 r8 r. N s c C s | j d�S )N�utf8)�encode)�sr7 r7 r8 � _to_bytes^ s rE c C s( y| j d� dS tk r" dS X d S )N�asciiTF)rC �UnicodeError)rD r7 r7 r8 �isasciib s rH c C s t j| �j� jdd�S )N� z; )�textwrap�dedent�strip�replace)�textr7 r7 r8 � _one_linerj s rO c @ s� e Zd ZdZdZdZd�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d�d@ddAej fgZdd dd dd0d3d9d<d@g Z d*diZ eZdBdC� Z dDdE� ZdFdG� ZedHdI� �ZdJdK� ZdLdM� ZdNdO� ZdPdQ� ZdRdS� Zd�dTdU�ZdVdW� ZdXdY� ZdZd[� Zejd\�j� Zejd]�j� Zejd^�j� Z d_d`� Z!dadb� Z"dcdd� Z#dedf� Z$dgdh� Z%didj� Z&e'j(dkdl� �Z)d�dndo�Z*d�dpdq�Z+drds� Z,d�dtdu�Z-dvdw� Z.dxdy� Z/dzd{� Z0d�d|d}�Z1ed~d� �Z2d�f fd�d��Z3d�d�� Z4d�d�� Z5d�d�� Z6d�d�� Z7d�d�� Z8d�d�� Z9ejd��j� Z:ejd��Z;d�d�d��Z<ejd��j� Z=d�d�� Z>d�d�� Z?d�d�� Z@d�d�� ZAd�d�� ZBd�d�� ZCd�d�� ZDd�d�� ZEejd��jF� ZGd�d�� ZHeIeId�d�d��d��ZJeId�d�d��ZKd�d�� ZLdS )�r/ z'Manage a download/build/install processz Find/get/install Python packagesT�prefix=N�installation prefix�zip-ok�z�install package as a zipfile� multi-version�m�%make apps have to require() a version�upgrade�U�1force upgrade (searches PyPI for latest versions)�install-dir=�d�install package to DIR�script-dir=rD �install scripts to DIR�exclude-scripts�x�Don't install scripts�always-copy�a�'Copy all needed packages to install dir� index-url=�i� base URL of Python Package Index�find-links=�f�(additional URL(s) to search for packages�build-directory=�b�/download/extract/build in DIR; keep the results� optimize=�O�lalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0]�record=�3filename in which to record list of installed files�always-unzip�Z�*don't install as a zipfile, no matter what� site-dirs=�S�)list of directories where .pth files work�editable�e�+Install specified packages in editable form�no-deps�N�don't install dependencies�allow-hosts=�H�$pattern(s) that hostnames must match�local-snapshots-ok�l�(allow building eggs from local checkouts�version�"print version information and exit� no-find-links�9Don't load find-links defined in packages being installed�userz!install in user site-package '%s'c C s2 t jdt� d| _d | _| _d | _ | _| _d | _ d | _ d | _d | _d | _ | _d | _ | _| _d | _ | _| _d | _ | _| _d | _d | _d | _d | _d | _d | _d | _d | _d | _ t!j"r�t!j#| _$t!j%| _&nd | _$d | _&d | _'d | _(d | _)| _*d | _+i | _,d | _-| j.j/| _/| j.j0| | j.j1d�� d S )NzVeasy_install command is deprecated. Use build and pip and other standards-based tools.r r/ )2�warnings�warn�EasyInstallDeprecationWarningr� �zip_ok�local_snapshots_ok�install_dir� script_dir�exclude_scripts� index_url� find_links�build_directory�args�optimize�recordrX �always_copy� multi_versionrz �no_deps�allow_hosts�root�prefix� no_reportr� �install_purelib�install_platlib�install_headers�install_lib�install_scripts�install_data�install_base�install_platbase�site�ENABLE_USER_SITE� USER_BASE�install_userbase� USER_SITE�install_usersite� no_find_links� package_index�pth_file�always_copy_from� site_dirs�installed_projects�_dry_run�distribution�verbose�_set_command_options�get_option_dict)�selfr7 r7 r8 �initialize_options� sJ zeasy_install.initialize_optionsc C s"