K ipddlmZddlmZddlmcmZddlm Z ddl m Z Gddej Zy) ) Distribution)newer_pairwise_groupN)log)DistutilsSetupErrorc$eZdZUdZeed<ddZy) build_clibav Override the default build_clib behaviour to do the following: 1. Implement a rudimentary timestamp-based dependency system so 'compile()' doesn't run every time. 2. Add more keys to the 'build_info' dictionary: * obj_deps - specify dependencies for each object compiled. this should be a dictionary mapping a key with the source filename to a list of dependencies. Use an empty string for global dependencies. * cflags - specify a list of additional flags to pass to the compiler. distributionNc r|D]1\}}|jd}|t|ttfst d|dt t|}t jd||jdt}t|tst d|dg}|jdt}t|ttfst d|d|D]w}|g} | j||j|t} t| ttfst d|d| j| |j| y|jj||j} t|| ggfk7rh|jd } |jd } |jd }|jj||j| | ||j |jj#| ||j$|j 4y)Nsourcesz in 'libraries' option (library 'zD'), 'sources' must be present and must be a list of source filenameszbuilding '%s' libraryobj_depsz:'), 'obj_deps' must be a dictionary of type 'source: list') output_dirmacros include_dirscflags)rrrextra_postargsdebug)rr)get isinstancelisttuplersortedrinfodictextendappendcompilerobject_filenames build_temprcompilercreate_static_libr )self librarieslib_name build_infor r dependencies global_depssourcesrc_deps extra_depsexpected_objectsrrrs c/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/command/build_clib.pybuild_librarieszbuild_clib.build_librariess>$-K  Hj nnY/Gj4-&H)6xjA11 T']+G HH,h 7 "~~j$&9Hh-)6xjA** L#,,r462KkD%=9)6xjA**" ."8 ,%\\&$&9 !*tUm<-:8*E..  +##H- . $}}==?? >   $L2BCBxO$1)~~n= #1 %%#!!-#)** & MM + + (tdjj , SK )returnN)__name__ __module__ __qualname____doc__r__annotations__r.r/r-r r s Lr/r ) distrmodifiedrdistutils.command.build_clibcommandr orig distutilsrdistutils.errorsrr6r/r-r>s)+++0^^r/