返回
Warning: You may not have write permissions to the file; saving may fail.
B ���T��T� @ sl d dl Z d dlZd dlmZ d dlmZ d dlmZmZ d dl T d dl mZ d dlm Z G dd � d e�ZdS ) � N)�Command)�get_platform)�create_tree�remove_tree)�*)�get_python_version)�logc @ s� e Zd ZdZdddde� fdddd d ddd dddg ZddddgZejdkZ dd� Z dd� Zdd� Zdd� Z d%dd �Zd!d"� Zd#d$� ZdS )&� bdist_wininstz-create an executable installer for MS Windows)z bdist-dir=Nz1temporary directory for creating the distributionz plat-name=�pz;platform name to embed in generated filenames (default: %s))z keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)ztarget-version=Nz6require a specific python version on the target system)zno-target-compile�cz/do not compile .py to .pyc on the target system)zno-target-optimize�oz;do not compile .py to .pyo (optimized) on the target system)z dist-dir=�dz-directory to put final built distributions in)zbitmap=�bz>bitmap to use for the installer instead of python-powered logo)ztitle=�tz?title to display on the installer background instead of default)z skip-buildNz2skip rebuilding everything (for testing/debugging))zinstall-script=NzUbasename of installation script to be run after installation or before deinstallation)zpre-install-script=Nz{Fully qualified filename of a script to be run before any files are installed. This script need not be in the distribution)zuser-access-control=Nz�specify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UACz keep-tempzno-target-compilezno-target-optimizez skip-build�win32c C sR d | _ d | _d| _d| _d| _d | _d | _d | _d | _d | _ d | _ d | _d | _d S )Nr ) � bdist_dir� plat_name� keep_temp�no_target_compile�no_target_optimize�target_version�dist_dir�bitmap�title� skip_build�install_script�pre_install_script�user_access_control)�self� r �D/opt/alt/python37/lib64/python3.7/distutils/command/bdist_wininst.py�initialize_options= s z bdist_wininst.initialize_optionsc C s� | � dd� | jd krR| jr6| jr6| j�d�}| j|_| �d�j}tj � |d�| _| js^d| _| js�| j�� r�t � }| jr�| j|kr�td|f ��|| _| � ddd� | jr�x2| jjD ]}| jtj �|�kr�P q�W td| j ��d S ) N�bdist)r r Zwininst� zMtarget version can only be %s, or the '--skip-build' option must be specified)r r )r r z(install_script '%s' not found in scripts)Zset_undefined_optionsr r r �distributionZget_command_obj�get_finalized_command� bdist_base�os�path�joinr �has_ext_modulesr ZDistutilsOptionErrorr �scripts�basename)r r# r'