K iddlmZddlZddlZddlmZmZddlmZddl m Z ddl m cm ZGddejZ y) ) annotationsN)productstarmap)StrPath) DistributionceZdZUdZded<d dZdZdZedZ dZ ed Z d dd Z d Z y ) install_libz9Don't add compiled flags to filenames of non-Python filesr distributioncl|j|j}||j|yyN)buildinstall byte_compile)selfoutfiless d/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/command/install_lib.pyrunzinstall_lib.runs/ <<>     h ' cfdjD}t|j}tt j |S)z Return a collections.Sized collections.Container of paths to be excluded for single_version_externally_managed installations. c3NK|]}j|D]}|ywr ) _all_packages).0ns_pkgpkgrs r z-install_lib.get_exclusions..s9 ))&1    s"%)_get_SVEM_NSPsr_gen_exclusion_pathssetr_exclude_pkg_path)r all_packages excl_specss` rget_exclusionszinstall_lib.get_exclusionssJ  --/ \4+D+D+FG 7411:>??rc|jd|gz}tjj|jg|S)zw Given a package name and exclusion path within that package, compute the full exclusion path. .)splitospathjoin install_dir)rrexclusion_pathpartss rr zinstall_lib._exclude_pkg_path's7  #.!11ww||D,,5u55rc#JK|r||jd\}}}|ryyw)zn >>> list(install_lib._all_packages('foo.bar.baz')) ['foo.bar.baz', 'foo.bar', 'foo'] r%N) rpartition)pkg_name_sep_childs rrzinstall_lib._all_packages/s, N%-%8%8%= "HdFs##c|jjsgS|jd}|j}|r|jjSgS)z Get namespace packages (list) but only for single_version_externally_managed installations and empty otherwise. r)r namespace_packagesget_finalized_command!single_version_externally_managed)r install_cmdsvems rrzinstall_lib._get_SVEM_NSPs9sL  33I00; <<7;t  33CCrc#Kdddttdsytjj ddtj j z}|dz|d z|d z|d zyw) zk Generate file paths to be excluded for namespace packages (bytecode cache files). z __init__.pyz __init__.pycz __init__.pyoimplementationN __pycache__z __init__.z.pycz.pyoz .opt-1.pycz .opt-2.pyc)hasattrsysr'r(r)r9 cache_tag)bases rrz install_lib._gen_exclusion_pathsIsws,- ww||M;9K9K9U9U+UVVmVm\!!\!!sA6A8c |sJ|sJ|rJ|j s!tjj|||Sddlm}ddlm g d fd }|||| S)Nr)unpack_directory)logc|vrjd|yjd|tjj |j ||S)Nz/Skipping installation of %s (namespace package)Fzcopying %s -> %s)warninfor'r(dirnameappend)srcdstexcluderArs rpfz!install_lib.copy_tree..pfxsKg~JCP HH'bggooc.B C OOC Jr)rGstrrHrK)r#origr copy_treesetuptools.archive_utilr@ distutilsrA) rinfileoutfile preserve_modepreserve_timespreserve_symlinkslevelr@rJrIrArs @@@rrMzinstall_lib.copy_tree^so}~$$$%%'##--dFGD D =!   "-rctjj|}|j}|r|Dcgc] }||vs| c}S|Scc}wr )rLr get_outputsr#)routputsrIfs rrWzinstall_lib.get_outputssK""..t4%%' &;!!7*:A; ;>D ""2##"'$$$  $  $ $$ $Lrr ) __future__rr'r< itertoolsrr_pathrdistrdistutils.command.install_libcommandr rLrerrrls1" &,,|$""|r