a0bi@rSrSSKrSSKrSSKrSSKrSSKJr SSKJ r J r SSK J r SSK Jr "SS \5rg) zHdistutils.command.build_py Implements the Distutils 'build_py' command.N)Command)DistutilsOptionErrorDistutilsFileError) convert_path)logc\rSrSrSr/SQrSS/rSS0rSrSr S r S r S r S r S rSrSrSrSrSrSrSrSSjrSrSrSrSrSrg)build_pyz5"build" pure Python modules (copy to build directory)))z build-lib=dzdirectory to "build" (copy) to)compileczcompile .py to .pyc) no-compileNz!don't compile .py files [default])z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])forcefz2forcibly build everything (ignore file timestamps)r rrctSUlSUlSUlSUlSUlSUlSUlSUlg)Nr) build_lib py_modulespackage package_data package_dirr optimizerselfs ڟ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/_distutils/command/build_py.pyinitialize_optionsbuild_py.initialize_options#s<     cURSSS5 URRUlURRUlURRUl0UlURR (aEURR R 5Hup[U5UR U'M UR5Ul [UR[5(d8[UR5Ul SURs=::aS::de egg![[4a [S5ef=f)Nbuild)rr)rrrrzoptimize must be 0, 1, or 2)set_undefined_options distributionpackagesrrritemsrget_data_files data_files isinstancerint ValueErrorAssertionErrorr)rnamepaths rfinalize_optionsbuild_py.finalize_options-s" "" /1C ))22 ++66 --::    ( ("//;;AAC )5d);  &D--/$---- J #DMM 2 DMM.Q....../ J*+HII Js 6D99EcUR(aUR5 UR(a UR5 UR 5 UR UR SS95 g)Nr)include_bytecode)r build_modulesr$build_packagesbuild_package_data byte_compile get_outputsrs rrun build_py.runFsR, ??    ==    !  # # % $**A*>?rc/nUR(dU$URHnURU5n[RR"UR /UR S5-6nSnU(a[U5S-nURX#5Vs/sHofUSPM nnURX#XG45 M U$s snf)z?Generate list of '(package,src_dir,build_dir,filenames)' tuples.rN) r$get_package_dirosr-joinrsplitlenfind_data_filesappend)rdatarsrc_dir build_dirplenfile filenamess rr&build_py.get_data_filesds}}K}}G**73G '7'--:L'LNID7|a'261E1Eg1WX1Wde1WIX KK9@ A% YsCc URRS/5URRU/5-n/nUHn[R"[RR [R "U5[U555nURUVs/sH2owU;dM [RRU5(dM0UPM4 sn5 M U$s snf)z6Return filenames for package's data files in 'src_dir') rgetglobr=r-r>escaperextendisfile)rrrDglobsfilespatternfilelistfns rrAbuild_py.find_data_fileszs!!%%b"-0A0A0E0Egr0RRGyy T[[1<3HIH LL&QhE/bggnnR>PhQ   Rs! C' ."C' C' c8URHupp4UH~n[RRX55nUR [RR U55 UR [RRX%5USS9 M M g)z$Copy data files into build directoryF preserve_modeN)r'r=r-r>mkpathdirname copy_file)rrrDrErHfilenametargets rr4build_py.build_package_datasp6:oo 2Gi%i: BGGOOF34GGLL3V5&7FrcLURS5nUR(d%U(a[RR"U6$g/nU(aNURSR U5nUR SU5 [RR"U6$URRS5nUbUR SU5 U(a[RR"U6$g![ a UR SUS5 US Of=fU(aMN)zReturn the directory, relative to the top of the source distribution, where package 'package' should be found (at least according to the 'package_dir' option, if any).r:rKr)r?rr=r-r>insertKeyErrorrL)rrr-tailpdirs rr<build_py.get_package_dirs}}S!ww||T**D/++CHHTN;D KK4(77<<..''++B/#KK4(77<<..+ !KK48,R!$sC44"DDcrUS:wad[RRU5(d[SU-5e[RR U5(d[SU-5eU(aF[RR US5n[RR U5(aU$g)NrKz%package directory '%s' does not existz>supposed package directory '%s' exists, but is not a directoryz __init__.py)r=r-existsrisdirr>rP)rrrinit_pys r check_packagebuild_py.check_packages " 77>>+..(;kI77==--(-/:; ggll; >Gww~~g&&rc|[RRU5(d[R"SX!5 gg)Nz!file %s (for module %s) not foundFT)r=r-rPrwarning)rmodule module_files r check_modulebuild_py.check_modules*ww~~k** KK;[ QrcLURX5 [R"[RR [R "U5S55n/n[RR URR5nUHn[RR U5nXu:waT[RR[RRU55SnURXU45 M{URSU-5 M U$)Nz*.pyrz excluding %s) rkrMr=r-r>rNabspathr# script_namesplitextbasenamerB debug_print) rrr module_filesmodules setup_scriptrabs_fros rfind_package_modulesbuild_py.find_package_moduless 70yydkk+.F!OP wwt'8'8'D'DE AGGOOA&E$))"''*:*:1*=>qA34  ,!>? rc0n/nURHnURS5nSRUSS5nUSnXupxU(d2UR XW5n US4X'U (aUR USU 45 [RRXvS-5n URX:5(dMUR XVU 45 M U$![a UR U5nSnNf=f)aFinds individually-specified Python modules, ie. those listed by module name in 'self.py_modules'. Returns a list of tuples (package, module_base, filename): 'package' is a tuple of the path through package-space to the module; 'module_base' is the bare (no packages, no dots) module name, and 'filename' is the path to the ".py" file (relative to the distribution root) that implements the module. r:rrar;__init__.py) rr?r>rcr<rkrBr=r-rq) rr$rzror-r module_basercheckedrjrps r find_modulesbuild_py.find_moduless ooF<<$DhhtAbz*Gr(K )1):& ,,WB%0!$4!NNGZ#AB '',,{%4GHK$$V99 NNG+> ?1&4' "227;  sCC10C1c/nUR(aURUR55 UR(aFURH6nUR U5nUR X#5nURU5 M8 U$)aCompute the list of all modules that will be built, whether they are specified one-module-at-a-time ('self.py_modules') or by whole packages ('self.packages'). Return a list of tuples (package, module, module_file), just like 'find_modules()' and 'find_package_modules()' do.)rrOrr$r<r})rrzrrms rfind_all_modulesbuild_py.find_all_modulessm  ?? NN4,,. / ===="227; --gCq!)rcRUR5Vs/sHoSPM sn$s snf)Nra)r)rros rget_source_filesbuild_py.get_source_files.s')-)>)>)@A)@vr )@AAAs$chU/[U5-US-/-n[RR"U6$)Nr)listr=r-r>)rrErro outfile_paths rget_module_outfilebuild_py.get_module_outfile1s1!{T']2fun5EE ww||\**rc UR5n/nUHupEnURS5nURURXE5nUR U5 U(dMMUR (a-UR [ RRUSS95 URS:dMUR [ RRXpRS95 M UURVVV V Vs/sH/upHpU H"n[RRX5PM$ M1 snn n nn- nU$s snn n nnf)Nr:rK) optimizationr)rr?rrrBr importlibutilcache_from_sourcerr'r=r-r>) rr1rzoutputsrrorpr]rDrErHs rr6build_py.get_outputs5s''),3 (G[mmC(G..t~~wOH NN8 $<<NN!88PR8S==1$NN!88$==9-4 :>// :I6)% GGLL -% .:I     s?6EcT[U[5(aURS5nO&[U[[45(d [ S5eUR URX15n[RRU5nURU5 URX$SS9$)Nr:z:'package' must be a string (dot-separated), list, or tuplerrX) r(strr?rtuple TypeErrorrrr=r-r[rZr\)rrorproutfiledirs r build_modulebuild_py.build_modulePs gs # #mmC(GGdE]33L ))$..'Jggoog& C~~k!~DDrc`UR5nUHup#nURX4U5 M gN)rr)rrzrrorps rr2build_py.build_modules`s1##%,3 (G[   f7 ; -4rcURHJnURU5nURX5nUHupEnX:XdeURXVU5 M! ML gr)r$r<r}r)rrrrzpackage_rorps rr3build_py.build_packagesis_}}G..w7K//EG29-+***!!&w?29%rc[R(aURS5 gSSKJn UR nUS[ R:waU[ R-nUR(aU"USURX0RS9 URS:a)U"UURURUURS9 gg)Nz%byte-compiling is disabled, skipping.r)r5rar)rrprefixdry_run) sysdont_write_bytecodewarnrr5rr=sepr rrr)rrRr5rs rr5build_py.byte_compile}s  " " II= > ' ": bff_F << FLL  ==1  jj   r) rr r'rrrrrr$rN)r;)__name__ __module__ __qualname____firstlineno__ description user_optionsboolean_options negative_optrr.r7r&rAr4r<rkrqr}rrrrr6rr2r3r5__static_attributes__rrr r sKK L!'*O ),LJ2@<, %N4 2h B+6E <@(rr )__doc__r=importlib.utilrrrMcorererrorsrrrrdistutils._logrr rrrrs20  =FwFr