Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / dist / module-distutils.deputil.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="dist.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="dist.html" title='Distributing Python Modules' />
8<link rel='index' href='genindex.html' title='Index' />
9<link rel='last' href='about.html' title='About this document...' />
10<link rel='help' href='about.html' title='About this document...' />
11<link rel="next" href="module-distutils.dirutil.html" />
12<link rel="prev" href="module-distutils.archiveutil.html" />
13<link rel="parent" href="api-reference.html" />
14<link rel="next" href="module-distutils.dirutil.html" />
15<meta name='aesop' content='information' />
16<title>10.10 distutils.dep_util -- Dependency checking</title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="10.9 distutils.archive_util "
24 href="module-distutils.archiveutil.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="10. API Reference"
27 href="api-reference.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="10.11 distutils.dir_util "
30 href="module-distutils.dirutil.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Distributing Python Modules</td>
33<td class='online-navigation'><img src='../icons/blank.png'
34 border='0' height='32' alt='' width='32' /></td>
35<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
36 border='0' height='32' alt='Module Index' width='32' /></a></td>
37<td class='online-navigation'><a rel="index" title="Index"
38 href="genindex.html"><img src='../icons/index.png'
39 border='0' height='32' alt='Index' width='32' /></A></td>
40</tr></table>
41<div class='online-navigation'>
42<b class="navlabel">Previous:</b>
43<a class="sectref" rel="prev" href="module-distutils.archiveutil.html">10.9 distutils.archive_util </A>
44<b class="navlabel">Up:</b>
45<a class="sectref" rel="parent" href="api-reference.html">10. API Reference</A>
46<b class="navlabel">Next:</b>
47<a class="sectref" rel="next" href="module-distutils.dirutil.html">10.11 distutils.dir_util </A>
48</div>
49<hr /></div>
50</DIV>
51<!--End of Navigation Panel-->
52
53<H1><A NAME="SECTION00101000000000000000000">
5410.10 <tt class="module">distutils.dep_util</tt> -- Dependency checking</A>
55</H1>
56<A NAME="module-distutils.deputil"></A>
57
58<P>
59This module provides functions for performing simple, timestamp-based
60dependency of files and groups of files; also, functions based entirely
61on such timestamp dependency analysis.
62
63<P>
64<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
65 <td><nobr><b><tt id='l2h-66' xml:id='l2h-66' class="function">newer</tt></b>(</nobr></td>
66 <td><var>source, target</var>)</td></tr></table></dt>
67<dd>
68Return true if <var>source</var> exists and is more recently modified than
69<var>target</var>, or if <var>source</var> exists and <var>target</var> doesn't.
70Return false if both exist and <var>target</var> is the same age or newer
71than <var>source</var>.
72Raise <tt class="exception">DistutilsFileError</tt> if <var>source</var> does not exist.
73</dl>
74
75<P>
76<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
77 <td><nobr><b><tt id='l2h-67' xml:id='l2h-67' class="function">newer_pairwise</tt></b>(</nobr></td>
78 <td><var>sources, targets</var>)</td></tr></table></dt>
79<dd>
80Walk two filename lists in parallel, testing if each source is newer
81than its corresponding target. Return a pair of lists (<var>sources</var>,
82<var>targets</var>) where source is newer than target, according to the semantics
83of <tt class="function">newer()</tt>
84</dl>
85
86<P>
87<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
88 <td><nobr><b><tt id='l2h-68' xml:id='l2h-68' class="function">newer_group</tt></b>(</nobr></td>
89 <td><var>sources, target</var><big>[</big><var>, missing=<code>'error'</code></var><big>]</big><var></var>)</td></tr></table></dt>
90<dd>
91Return true if <var>target</var> is out-of-date with respect to any file
92listed in <var>sources</var> In other words, if <var>target</var> exists and is newer
93than every file in <var>sources</var>, return false; otherwise return true.
94<var>missing</var> controls what we do when a source file is missing; the
95default (<code>'error'</code>) is to blow up with an <tt class="exception">OSError</tt> from
96inside <tt class="function">os.stat()</tt>;
97if it is <code>'ignore'</code>, we silently drop any missing source files; if it is
98<code>'newer'</code>, any missing source files make us assume that <var>target</var> is
99out-of-date (this is handy in ``dry-run'' mode: it'll make you pretend to
100carry out commands that wouldn't work because inputs are missing, but
101that doesn't matter because you're not actually going to run the
102commands).
103</dl>
104
105<P>
106
107<DIV CLASS="navigation">
108<div class='online-navigation'>
109<p></p><hr />
110<table align="center" width="100%" cellpadding="0" cellspacing="2">
111<tr>
112<td class='online-navigation'><a rel="prev" title="10.9 distutils.archive_util "
113 href="module-distutils.archiveutil.html"><img src='../icons/previous.png'
114 border='0' height='32' alt='Previous Page' width='32' /></A></td>
115<td class='online-navigation'><a rel="parent" title="10. API Reference"
116 href="api-reference.html"><img src='../icons/up.png'
117 border='0' height='32' alt='Up One Level' width='32' /></A></td>
118<td class='online-navigation'><a rel="next" title="10.11 distutils.dir_util "
119 href="module-distutils.dirutil.html"><img src='../icons/next.png'
120 border='0' height='32' alt='Next Page' width='32' /></A></td>
121<td align="center" width="100%">Distributing Python Modules</td>
122<td class='online-navigation'><img src='../icons/blank.png'
123 border='0' height='32' alt='' width='32' /></td>
124<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
125 border='0' height='32' alt='Module Index' width='32' /></a></td>
126<td class='online-navigation'><a rel="index" title="Index"
127 href="genindex.html"><img src='../icons/index.png'
128 border='0' height='32' alt='Index' width='32' /></A></td>
129</tr></table>
130<div class='online-navigation'>
131<b class="navlabel">Previous:</b>
132<a class="sectref" rel="prev" href="module-distutils.archiveutil.html">10.9 distutils.archive_util </A>
133<b class="navlabel">Up:</b>
134<a class="sectref" rel="parent" href="api-reference.html">10. API Reference</A>
135<b class="navlabel">Next:</b>
136<a class="sectref" rel="next" href="module-distutils.dirutil.html">10.11 distutils.dir_util </A>
137</div>
138</div>
139<hr />
140<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
141</DIV>
142<!--End of Navigation Panel-->
143<ADDRESS>
144See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
145</ADDRESS>
146</BODY>
147</HTML>