1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
U
G=®d1ã@shdZddlZddlmZddlmZddlmZmZddl    Tddl
m Z ddl m Z Gd    d
„d
eƒZdS) z·distutils.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_treeÚensure_relative)Ú*)Úget_python_version)Úlogc    @s^eZdZdZddddeƒfdddd    d
d d g    Zd ddgZdddœZdd„Zdd„Z    dd„Z
dS)Ú
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-tempÚkzPkeep 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]r rrÚgztarÚzip)ÚposixÚntcCs:d|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nr)    Ú    bdist_dirÚ    plat_nameÚformatÚ    keep_tempÚdist_dirÚ
skip_buildrÚownerÚgroup)Úself©r ú_D:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\setuptools/_distutils/command/bdist_dumb.pyÚinitialize_options2szbdist_dumb.initialize_optionscCsz|jdkr&| d¡j}tj |d¡|_|jdkrfz|jtj|_Wn"t    k
rdt
dtjƒ‚YnX|  dddd¡dS)NÚbdistZdumbz@don't know how to create dumb built distributions on platform %s)rr)rr)rr) rÚget_finalized_commandÚ
bdist_baseÚosÚpathÚjoinrÚdefault_formatÚnameÚKeyErrorÚDistutilsPlatformErrorÚset_undefined_options)rr%r r r!Úfinalize_options=s"
 
ÿÿ
ýzbdist_dumb.finalize_optionscCs(|js| d¡|jddd}|j|_|j|_d|_t d|j¡| d¡d|j     ¡|j
f}t j   |j|¡}|js~|j}nJ|j ¡r²|j|jkr²tdt|jƒt|jƒfƒ‚nt j   |jt|jƒ¡}|j||j||j|jd    }|j ¡rôtƒ}nd
}|jj d ||f¡|js$t|j|jd dS) NÚbuildÚinstallé)Úreinit_subcommandsrzinstalling to %sz%s.%szScan't make a dumb built distribution where base and platbase are different (%s, %s))Úroot_dirrrÚanyr    )Údry_run) rÚ run_commandÚreinitialize_commandrÚrootÚwarn_dirrÚinfoÚ distributionÚ get_fullnamerr&r'r(rrÚhas_ext_modulesÚ install_baseÚinstall_platbaser,ÚreprrÚ make_archiverrrrÚ
dist_filesÚappendrrr5)rr0Zarchive_basenameZpseudoinstall_rootZ archive_rootÚfilenameZ    pyversionr r r!ÚrunOsR
 
 
ÿ
 
ÿÿþÿ
ÿþ
 ÿzbdist_dumb.runN) Ú__name__Ú
__module__Ú __qualname__Ú descriptionrÚ user_optionsÚboolean_optionsr)r"r.rEr r r r!r    s,ÿÿë
ÿ r    )Ú__doc__r&Údistutils.corerÚdistutils.utilrÚdistutils.dir_utilrrÚdistutils.errorsÚdistutils.sysconfigrÚ    distutilsrr    r r r r!Ú<module>s