ã“Re„ã@s_ddljjZddlmZddlmZddlm Z Gdd„dejƒZdS)éN)ÚDistutilsSetupError)Úlog)Únewer_pairwise_groupc@s"eZdZdZdd„ZdS)Ú 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 Cs%x|D]\}}|jdƒ}|dksDt|ttfƒ rTtd|ƒ‚t|ƒ}tjd|ƒ|jdtƒƒ}t|tƒs¤td|ƒ‚g}|jdtƒƒ}t|ttfƒsätd|ƒ‚xx|D]p}|g} | j|ƒ|j|tƒƒ} t| ttfƒsAtd|ƒ‚| j| ƒ|j | ƒqëW|j j |d|j ƒ} t || ƒggfkrø|jdƒ} |jd ƒ} |jd ƒ}|j j|d|j d| d | d |d |jƒ}|j j| |d|jd |jƒqWdS) NÚsourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' libraryÚobj_depsz\in 'libraries' option (library '%s'), 'obj_deps' must be a dictionary of type 'source: list'ÚÚ output_dirÚmacrosÚ include_dirsÚcflagsZextra_postargsÚdebug)ÚgetÚ isinstanceÚlistÚtuplerrÚinfoÚdictÚextendÚappendÚcompilerZobject_filenamesÚ build_temprÚcompiler Zcreate_static_libr)ÚselfÚ librariesZlib_nameZ build_inforrZ dependenciesZ global_depsÚsourceZsrc_depsZ extra_depsZexpected_objectsr r r Zobjects©rú“/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/command/build_clib.pyÚbuild_librariess`"                zbuild_clib.build_librariesN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrs r) Zdistutils.command.build_clibÚcommandrÚorigÚdistutils.errorsrÚ distutilsrZsetuptools.dep_utilrrrrrÚs