B L@;“” ¯ã @ 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:)Údistutils.fancy_getoptr ÚbdistÚformat_commandsÚappendÚformat_commandÚ print_help)r ÚformatsÚformatZpretty_printer© r ú™/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_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)Ú 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 )NÚbuildzbdist.r z;don't know how to create built distributions on platform %sÚdist)r&