| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/setuptools/command/__pycache__/ |
Upload File : |
B
�a�@ � @ s" d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl
Z
ddlZddlZddl
mZmZmZ ddlmZ ddlmZ dd lmZmZ d
d� Zdd
� Zdd� Zdd� ZG dd� de�Ze�d�� �Z dd� Z!dd� Z"dd� Z#ddd�Z$dd� Z%d d!� Z&d"d#� Z'd$d%d&d'gZ(d,d*d+�Z)dS )-z6setuptools.command.bdist_egg
Build .egg distributions� )�remove_tree�mkpath)�log)�CodeTypeN)�get_build_platform�Distribution�ensure_directory)�Library)�Command)�get_path�get_python_versionc C s t d�S )NZpurelib)r � r
r
�@/usr/lib/python3.7/site-packages/setuptools/command/bdist_egg.py�_get_purelib s r c C s2 d| krt j�| �d } | �d�r.| d d� } | S )N�.r �modulei����)�os�path�splitext�endswith)�filenamer
r
r �strip_module s
r c c s: x4t �| �D ]&\}}}|�� |�� |||fV qW dS )zbDo os.walk in a reproducible way,
independent of indeterministic filesystem readdir order
N)r �walk�sort)�dir�base�dirs�filesr
r
r �sorted_walk! s r c C s6 t �d��� }t|d��}|�|| � W d Q R X d S )Na�
def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, importlib.util
__file__ = pkg_resources.resource_filename(__name__, %r)
__loader__ = None; del __bootstrap__, __loader__
spec = importlib.util.spec_from_file_location(__name__,__file__)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
__bootstrap__()
�w)�textwrap�dedent�lstrip�open�write)�resource�pyfileZ_stub_template�fr
r
r �
write_stub+ s
r( c @ s� e Zd ZdZdddde� fdddd gZd
ddgZd
d� Zdd� Zdd� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd � Zd!d"� Zd#S )$� bdist_eggzcreate an "egg" distribution)z
bdist-dir=�bz1temporary directory for creating the distributionz
plat-name=�pz;platform name to embed in generated filenames (default: %s))zexclude-source-filesNz+remove all .py files from the generated egg)z keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z dist-dir=�dz-directory to put final built distributions in)z
skip-buildNz2skip rebuilding everything (for testing/debugging)z keep-tempz
skip-buildzexclude-source-filesc C s. d | _ d | _d| _d | _d| _d | _d | _d S )Nr )� bdist_dir� plat_name� keep_temp�dist_dir�
skip_build�
egg_output�exclude_source_files)�selfr
r
r �initialize_optionsR s zbdist_egg.initialize_optionsc C s� | � d� }| _|j| _| jd kr>| � d�j}tj�|d�| _| jd krPt � | _| �
dd� | jd kr�td d |j
|jt� | j�� o�| j��
� }tj�| j|d �| _d S )N�egg_infoZbdistZegg)r1 r1 z.egg)�get_finalized_command�ei_cmdr7 r. �
bdist_baser r �joinr/ r Zset_undefined_optionsr3 r Zegg_nameZegg_versionr �distribution�has_ext_modulesr1 )r5 r9 r: �basenamer
r
r �finalize_options[ s
zbdist_egg.finalize_optionsc C s� | j | �d�_tj�tj�t� ��}| jj g }| j_ x�|D ]�}t
|t�r�t|�dkr�tj�
|d �r�tj�|d �}tj�|�}||ks�|�|tj �r�|t|�d d � |d f}| jj �|� q<W z"t�d| j � | jddd d� W d || j_ X d S )N�install� r � zinstalling package data to %s�install_data)�force�root)r. r8 �install_libr r �normcase�realpathr r<