| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/setuptools/command/__pycache__/ |
Upload File : |
3
�K]� � @ sR d dl mZ d dljjZd dlZd dlZd dlm Z m
Z
mZ G dd� dej�ZdS )� )�logN)�Distribution�PathMetadata�ensure_directoryc @ s* e Zd ZdZdd� Zdd� Zd
dd�Zd S )�install_scriptsz;Do normal script install, plus any egg_info wrapper scriptsc C s t jj| � d| _d S )NF)�origr �initialize_options�no_ep)�self� r �%/usr/lib/python3.6/install_scripts.pyr s z"install_scripts.initialize_optionsc C s� dd l jj}| jd� | jjr,tjj| � ng | _ | j
r<d S | jd�}t|j
t|j
|j�|j|j�}| jd�}t|dd �}| jd�}t|dd�}|j}|r�d}|j}|tjkr�|g}|j� }|jj� j|�} x"|j|| j� �D ]}
| j|
� q�W d S ) Nr �egg_infoZ
build_scripts�
executableZ
bdist_wininstZ_is_runningFz
python.exe)�setuptools.command.easy_install�commandZeasy_installZrun_commandZdistribution�scriptsr r �run�outfilesr Zget_finalized_commandr Zegg_baser r
Zegg_nameZegg_version�getattrZScriptWriterZWindowsScriptWriter�sysr ZbestZcommand_spec_classZ
from_paramZget_argsZ as_header�write_script)r
ZeiZei_cmdZdistZbs_cmdZ
exec_paramZbw_cmdZ
is_wininst�writer�cmd�argsr r r r s2
zinstall_scripts.run�tc
G s� ddl m}m} tjd|| j� tjj| j|�}| j j
|� |� }| js~t|� t
|d| �} | j|� | j� ||d| � dS )z1Write an executable file to the scripts directoryr )�chmod�
current_umaskzInstalling %s script to %s�wi� N)r r r r �infoZinstall_dir�os�path�joinr �appendZdry_runr �open�write�close)
r
Zscript_name�contents�modeZignoredr r �target�mask�fr r r r 3 s
zinstall_scripts.write_scriptN)r )�__name__�
__module__�__qualname__�__doc__r r r r r r r r s #r )Z distutilsr Z!distutils.command.install_scriptsr r r r r Z
pkg_resourcesr r r r r r r �<module> s