관리-도구
편집 파일: bdist.cpython-37.pyc
B � f� � @ sH d Z ddlZddlmZ ddlT ddlmZ dd� ZG dd � d e�ZdS ) zidistutils.command.bdist Implements the Distutils 'bdist' command (create a built [binary] distribution).� N)�Command)�*)�get_platformc C sT ddl m} g }x,tjD ]"}|�d| dtj| d f� qW | |�}|�d� dS )zFPrint list of available formats (arguments to "--format" option). r )�FancyGetoptzformats=N� z'List of available distribution formats:)Zdistutils.fancy_getoptr �bdist�format_commands�append�format_commandZ print_help)r �formats�formatZpretty_printer� r �</opt/alt/python37/lib64/python3.7/distutils/command/bdist.py�show_formats s r c @ s� e Zd ZdZdddde� fdddd d gZdgZdd defgZdZ ddd�Z dddddddddg Zddddddd d!d"d#� Zd$d%� Z d&d'� Zd(d)� Zd S )*r z$create a built (binary) distribution)zbdist-base=�bz4temporary directory for creating built distributionsz plat-name=�pz;platform name to embed in generated filenames (default: %s))zformats=Nz/formats for distribution (comma-separated list))z dist-dir=�dz=directory to put final built distributions in [default: dist])z skip-buildNz2skip rebuilding everything (for testing/debugging))zowner=�uz@Owner name used when creating a tar file [default: current user])zgroup=�gzAGroup name used when creating a tar file [default: current group]z skip-buildzhelp-formatsNz$lists available distribution formats)� bdist_rpm�gztar�zip)�posix�nt�rpm�bztar�xztar�ztar�tar�wininst�msi)r zRPM distribution)� bdist_dumbzgzip'ed tar file)r! zbzip2'ed tar file)r! zxz'ed tar file)r! zcompressed tar file)r! ztar file)Z bdist_wininstzWindows executable installer)r! zZIP file)Z bdist_msizMicrosoft Installer) r r r r r r r r r c C s. d | _ d | _d | _d | _d| _d | _d | _d S )Nr )� bdist_base� plat_namer �dist_dir� skip_build�group�owner)�selfr r r �initialize_optionsQ s zbdist.initialize_optionsc C s� | j d kr(| jrt� | _ n| �d�j | _ | jd krT| �d�j}tj�|d| j �| _| � d� | j d kr�y| jtj g| _ W n" t k r� tdtj ��Y nX | jd kr�d| _d S )NZbuildzbdist.r z;don't know how to create built distributions on platform %sZdist)r# r% r Zget_finalized_commandr"