VULN_CHECK_I913V6 SSh9rdZddlZddlmZddlmZddlmZmZddl m Z ddl m Z dd l mZGd d eZy) zdistutils.command.bdist_dumb Implements the Distutils 'bdist_dumb' command (create a "dumb" built distribution -- i.e., just an archive to be unpacked under $prefix or $exec_prefix).N)Command) get_platform) remove_treeensure_relative)DistutilsPlatformError)get_python_version)logc `eZdZdZddddezfdddd d d d g Zgd ZdddZdZdZ dZ y) bdist_dumbz"create a "dumb" built distribution)z bdist-dir=dz1temporary directory for creating the distributionz plat-name=pz;platform name to embed in generated filenames (default: %s))zformat=fz>archive format to create (tar, gztar, bztar, xztar, ztar, zip)) keep-tempkzPkeep the pseudo-installation tree around after creating the distribution archive)z dist-dir=r z-directory to put final built distributions in) skip-buildNz2skip rebuilding everything (for testing/debugging))relativeNz7build the archive using relative paths (default: false))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])rrrgztarzip)posixntcd|_d|_d|_d|_d|_d|_d|_d|_d|_y)Nr) bdist_dir plat_nameformat keep_tempdist_dir skip_buildrownergroup)selfs M/usr/lib/python3.12/site-packages/setuptools/_distutils/command/bdist_dumb.pyinitialize_optionszbdist_dumb.initialize_options=sA     ct|j@|jdj}tjj |d|_|j # |jtj|_|jddddy#t$rtdtjzwxYw)Nbdistdumbz@don't know how to create dumb built distributions on platform %s)rr)rr)r r ) rget_finalized_command bdist_baseospathjoinrdefault_formatnameKeyErrorrset_undefined_options)r#r+s r$finalize_optionszbdist_dumb.finalize_optionsHs >> !33G<GGJWW\\*f=DN ;;  "11"'':  ""  $ & (   ,%')ww/ s "B&B7c|js|jd|jdd}|j|_|j|_d|_t jd|j|jddj|jj|j}tjj|j|}|j s |j}n|jj#rQ|j$|j&k7r8t)dt+|j$d t+|j&d tjj|jt-|j$}|j/||j||j0|j2 }|jj#r t5}nd }|jj6j9d ||f|j:s"t=|j|j>yy)Nbuildinstall)reinit_subcommandsrzinstalling to %sz{}.{}zLcan't make a dumb built distribution where base and platbase are different (z, ))root_dirr!r"anyr )dry_run) r run_commandreinitialize_commandrrootwarn_dirr infor distribution get_fullnamerr,r-r.rrhas_ext_modules install_baseinstall_platbaserreprr make_archiver!r"r dist_filesappendrrr<)r#r6archive_basenamepseudoinstall_root archive_rootfilename pyversions r$runzbdist_dumb.run]s   W %++I!+L~~ !__ #T^^4 ##>>    * * ,dnn  WW\\$--9IJ}}>>L  002$$(@(@@,G00148P8P3QS "ww||NNOG4H4H$I  $$  KK!**** %     , , .*,II $$++\9h,OP~~  =r&N) __name__ __module__ __qualname__ descriptionr user_optionsboolean_optionsr/r%r3rPr&r$r r sq8K Q   *n -   LR   ?$LL>O&e4N  *2>r&r )__doc__r,corerutilrdir_utilrrerrorsr sysconfigr distutils._logr r rWr&r$r_s/  3+*>>r&