/usr/lib/python3.10/distutils/command/__pycache__
Edit: /usr/lib/python3.10/distutils/command/__pycache__/bdist.cpython-310.pyc (3550B)
o
bc9 @ sH d Z ddlZddlmZ ddlT ddlmZ dd ZG dd d eZdS )
zidistutils.command.bdist
Implements the Distutils 'bdist' command (create a built [binary]
distribution). N)Command)*)get_platformc C sP ddl m} g }tjD ]}|d| dtj| d f q| |}|d dS )zFPrint list of available formats (arguments to "--format" option).
r )FancyGetoptformats=N z'List of available distribution formats:)distutils.fancy_getoptr bdistformat_commandsappendformat_command
print_help)r formatsformatpretty_printer r ./usr/lib/python3.10/distutils/command/bdist.pyshow_formats s
r c @ s e Zd ZdZdddde fdddd d
gZdgZdd
defgZdZ dddZ
g dZdddddddddZdd Z
dd 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))r Nz/formats for distribution (comma-separated list))z dist-dir=dz=directory to put final built distributions in [default: dist])
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]r zhelp-formatsNz$lists available distribution formats) bdist_rpmgztarzip)posixnt)rpmr bztarxztarztartarr 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)r% zZIP file) bdist_msizMicrosoft Installerc C s. d | _ d | _d | _d | _d| _d | _d | _d S )Nr )
bdist_base plat_namer dist_dir
skip_buildgroupowner)selfr r r initialize_optionsO s
zbdist.initialize_optionsc C s | j d u r| jr
t | _ n| dj | _ | jd u r*| dj}tj|d| j | _| d | j
d u rMz
| jtj g| _
W n t
yL tdtj w | jd u rWd| _d S d S )Nbuildzbdist.r z;don't know how to create built distributions on platform %sdist)r( r* r get_finalized_commandr'
build_baseospathjoinensure_string_listr default_formatnameKeyErrorDistutilsPlatformErrorr) )r- r2 r r r finalize_optionsX s.
zbdist.finalize_optionsc C s g }| j D ]}z|| j| d W q ty td| w tt| j D ]4}|| }| |}|| jvr>| j | |_ |dkrJ| j
|_
| j|_|||d d v rWd|_|
| q(d S )Nr zinvalid format '%s'r% r )r r r r9 DistutilsOptionErrorrangelenreinitialize_commandno_format_optionr r, r+ keep_temprun_command)r- commandsr icmd_namesub_cmdr r r runt s&