PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: build_clib.py Size: 4.38 KB
/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/build_clib.py

import distutils.command.build_clib as orig
from distutils.errors import DistutilsSetupError
from distutils import log
from setuptools.dep_util import newer_pairwise_group


class build_clib(orig.build_clib):
    """
    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.
    """

    def build_libraries(self, libraries):
        for (lib_name, build_info) in libraries:
            sources = build_info.get('sources')
            if sources is None or not isinstance(sources, (list, tuple)):
                raise DistutilsSetupError(
                       "in 'libraries' option (library '%s'), "
                       "'sources' must be present and must be "
                       "a list of source filenames" % lib_name)
            sources = list(sources)

            log.info("building '%s' library", lib_name)

            # Make sure everything is the correct type.
            # obj_deps should be a dictionary of keys as sources
            # and a list/tuple of files that are its dependencies.
            obj_deps = build_info.get('obj_deps', dict())
            if not isinstance(obj_deps, dict):
                raise DistutilsSetupError(
                       "in 'libraries' option (library '%s'), "
                       "'obj_deps' must be a dictionary of "
                       "type 'source: list'" % lib_name)
            dependencies = []

            # Get the global dependencies that are specified by the '' key.
            # These will go into every source's dependency list.
            global_deps = obj_deps.get('', list())
            if not isinstance(global_deps, (list, tuple)):
                raise DistutilsSetupError(
                       "in 'libraries' option (library '%s'), "
                       "'obj_deps' must be a dictionary of "
                       "type 'source: list'" % lib_name)

            # Build the list to be used by newer_pairwise_group
            # each source will be auto-added to its dependencies.
            for source in sources:
                src_deps = [source]
                src_deps.extend(global_deps)
                extra_deps = obj_deps.get(source, list())
                if not isinstance(extra_deps, (list, tuple)):
                    raise DistutilsSetupError(
                           "in 'libraries' option (library '%s'), "
                           "'obj_deps' must be a dictionary of "
                           "type 'source: list'" % lib_name)
                src_deps.extend(extra_deps)
                dependencies.append(src_deps)

            expected_objects = self.compiler.object_filenames(
                    sources,
                    output_dir=self.build_temp
                    )

            if newer_pairwise_group(dependencies, expected_objects) != ([], []):
                # First, compile the source code to object files in the library
                # directory.  (This should probably change to putting object
                # files in a temporary build directory.)
                macros = build_info.get('macros')
                include_dirs = build_info.get('include_dirs')
                cflags = build_info.get('cflags')
                objects = self.compiler.compile(
                        sources,
                        output_dir=self.build_temp,
                        macros=macros,
                        include_dirs=include_dirs,
                        extra_postargs=cflags,
                        debug=self.debug
                        )

            # Now "link" the object files together into a static library.
            # (On Unix at least, this isn't really linking -- it just
            # builds an archive.  Whatever.)
            self.compiler.create_static_lib(
                    expected_objects,
                    lib_name,
                    output_dir=self.build_clib,
                    debug=self.debug
                    )

Directory Contents

Dirs: 0 × Files: 51

Name Size Perms Modified Actions
2.37 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
3.11 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
17.76 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
18.29 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.47 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.92 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
637 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.21 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
4.38 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
2.82 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
12.72 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
12.10 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
9.37 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
10.72 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
8.00 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
7.96 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
960 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.82 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
85.50 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
80.73 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
24.97 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
26.83 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
4.59 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
5.00 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
2.15 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
3.21 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
3.77 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
4.93 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
2.38 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
2.89 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
628 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
4.87 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
5.57 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
468 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.01 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
2.11 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
3.03 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
658 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1.14 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
7.90 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
9.97 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
4.97 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
6.04 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
9.38 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
10.84 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
462 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
1012 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
7.14 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
7.80 KB lrw-r--r-- 2024-10-10 13:18:22
Edit Download
568 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download
863 B lrw-r--r-- 2024-10-10 13:18:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`