Commit | Line | Data |
---|---|---|
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="describing-extensions.html" /> | |
12 | <link rel="prev" href="listing-packages.html" /> | |
13 | <link rel="parent" href="setup-script.html" /> | |
14 | <link rel="next" href="describing-extensions.html" /> | |
15 | <meta name='aesop' content='information' /> | |
16 | <title>2.2 Listing individual modules</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="2.1 Listing whole packages" | |
24 | href="listing-packages.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="2. Writing the Setup" | |
27 | href="setup-script.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="2.3 Describing extension modules" | |
30 | href="describing-extensions.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="listing-packages.html">2.1 Listing whole packages</A> | |
44 | <b class="navlabel">Up:</b> | |
45 | <a class="sectref" rel="parent" href="setup-script.html">2. Writing the Setup</A> | |
46 | <b class="navlabel">Next:</b> | |
47 | <a class="sectref" rel="next" href="describing-extensions.html">2.3 Describing extension modules</A> | |
48 | </div> | |
49 | <hr /></div> | |
50 | </DIV> | |
51 | <!--End of Navigation Panel--> | |
52 | ||
53 | <H1><A NAME="SECTION002200000000000000000"></A> | |
54 | <A NAME="listing-modules"></A> | |
55 | <BR> | |
56 | 2.2 Listing individual modules | |
57 | </H1> | |
58 | ||
59 | <P> | |
60 | For a small module distribution, you might prefer to list all modules | |
61 | rather than listing packages--especially the case of a single module | |
62 | that goes in the ``root package'' (i.e., no package at all). This | |
63 | simplest case was shown in section <A href="simple-example.html#simple-example">1.2</A>; here is a | |
64 | slightly more involved example: | |
65 | ||
66 | <P> | |
67 | <div class="verbatim"><pre> | |
68 | py_modules = ['mod1', 'pkg.mod2'] | |
69 | </pre></div> | |
70 | ||
71 | <P> | |
72 | This describes two modules, one of them in the ``root'' package, the | |
73 | other in the <tt class="module">pkg</tt> package. Again, the default package/directory | |
74 | layout implies that these two modules can be found in <span class="file">mod1.py</span> and | |
75 | <span class="file">pkg/mod2.py</span>, and that <span class="file">pkg/__init__.py</span> exists as well. | |
76 | And again, you can override the package/directory correspondence using | |
77 | the <span class="du-option">package_dir</span> option. | |
78 | ||
79 | <P> | |
80 | ||
81 | <DIV CLASS="navigation"> | |
82 | <div class='online-navigation'> | |
83 | <p></p><hr /> | |
84 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
85 | <tr> | |
86 | <td class='online-navigation'><a rel="prev" title="2.1 Listing whole packages" | |
87 | href="listing-packages.html"><img src='../icons/previous.png' | |
88 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
89 | <td class='online-navigation'><a rel="parent" title="2. Writing the Setup" | |
90 | href="setup-script.html"><img src='../icons/up.png' | |
91 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
92 | <td class='online-navigation'><a rel="next" title="2.3 Describing extension modules" | |
93 | href="describing-extensions.html"><img src='../icons/next.png' | |
94 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
95 | <td align="center" width="100%">Distributing Python Modules</td> | |
96 | <td class='online-navigation'><img src='../icons/blank.png' | |
97 | border='0' height='32' alt='' width='32' /></td> | |
98 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' | |
99 | border='0' height='32' alt='Module Index' width='32' /></a></td> | |
100 | <td class='online-navigation'><a rel="index" title="Index" | |
101 | href="genindex.html"><img src='../icons/index.png' | |
102 | border='0' height='32' alt='Index' width='32' /></A></td> | |
103 | </tr></table> | |
104 | <div class='online-navigation'> | |
105 | <b class="navlabel">Previous:</b> | |
106 | <a class="sectref" rel="prev" href="listing-packages.html">2.1 Listing whole packages</A> | |
107 | <b class="navlabel">Up:</b> | |
108 | <a class="sectref" rel="parent" href="setup-script.html">2. Writing the Setup</A> | |
109 | <b class="navlabel">Next:</b> | |
110 | <a class="sectref" rel="next" href="describing-extensions.html">2.3 Describing extension modules</A> | |
111 | </div> | |
112 | </div> | |
113 | <hr /> | |
114 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
115 | </DIV> | |
116 | <!--End of Navigation Panel--> | |
117 | <ADDRESS> | |
118 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
119 | </ADDRESS> | |
120 | </BODY> | |
121 | </HTML> |