B Û©DfS¼ã @ st d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl T ddlmZ ddl mZ G d d „ d eƒZdS )zzdistutils.command.bdist_wininst Implements the Distutils 'bdist_wininst' command: create a windows installer exe-program.é N)ÚCommand)Úget_platform)Úremove_tree)Ú*)Úget_python_version)Úlogc sš e Zd ZdZddddeƒ fdddd d ddd dddg ZddddgZejdkZ ‡ fdd„Z dd„ Zdd„ Zdd„ Z dd„ Zd'd!d"„Zd#d$„ Zd%d&„ Z‡ ZS )(Ú 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 s t ƒ j||Ž t dtd¡ d S )Nz^bdist_wininst command is deprecated since Python 3.8, use bdist_wheel (wheel packages) insteadé )ÚsuperÚ__init__ÚwarningsÚwarnÚDeprecationWarning)ÚselfÚargsÚkw)Ú __class__© ú¡/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_wininst.pyr ? s zbdist_wininst.__init__c 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)r r r r Úinitialize_optionsE 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&