_i d dl mc mZ d dlmZ d dlmZ d dlm Z G d dej Zy# e $ r ddlm Z Y #w xY w) N)DistutilsSetupError)log)newer_pairwise_group c e Zd ZdZd Zy) 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. c j |D ]- \ }}|j d }|t |t t f st d|z t t | }t j d| |j dt }t |t st d|z g }|j dt }t |t t f st d|z |D ]v }|g} | j | |j |t } t | t t f st d|z | j | |j | x | j j || j }t || g g fk7 rh|j d }|j d } |j d }| j j || j || || j | j j# ||| j$ | j 0 y ) Nsourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' libraryobj_depsz\in 'libraries' option (library '%s'), 'obj_deps' must be a dictionary of type 'source: list' ) output_dirmacrosinclude_dirscflags)r r r extra_postargsdebug)r r )get isinstancelisttupler sortedr infodictextendappendcompilerobject_filenames build_tempr compiler create_static_libr )self librarieslib_name build_infor r dependenciesglobal_depssourcesrc_deps extra_depsexpected_objectsr r r s /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/command/build_clib.pybuild_librarieszbuild_clib.build_libraries s $- Hj nnY/Gj4-&H)13;< T']+GHH,h7 "~~j$&9Hh-)*,45 L #,,r462KkD%=9)*,45 ""8,%\\&$&9 !*tUm<-.089 +##H- " $}}==?? > $L2BCBxO $1)~~n=#1 %%#!!-#)** &