Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html> | |
3 | <head> | |
4 | <link rel="STYLESHEET" href="ext.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="ext.html" title='Extending and Embedding the Python Interpreter' /> | |
8 | <link rel='contents' href='contents.html' title="Contents" /> | |
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="prev" href="building.html" /> | |
12 | <link rel="parent" href="building.html" /> | |
13 | <link rel="next" href="building-on-windows.html" /> | |
14 | <meta name='aesop' content='information' /> | |
15 | <title>3.1 Distributing your extension modules </title> | |
16 | </head> | |
17 | <body> | |
18 | <DIV CLASS="navigation"> | |
19 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> | |
20 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
21 | <tr> | |
22 | <td class='online-navigation'><a rel="prev" title="3. Building C and" | |
23 | href="building.html"><img src='../icons/previous.png' | |
24 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
25 | <td class='online-navigation'><a rel="parent" title="3. Building C and" | |
26 | href="building.html"><img src='../icons/up.png' | |
27 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
28 | <td class='online-navigation'><a rel="next" title="4. Building C and" | |
29 | href="building-on-windows.html"><img src='../icons/next.png' | |
30 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
31 | <td align="center" width="100%">Extending and Embedding the Python Interpreter</td> | |
32 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
33 | href="contents.html"><img src='../icons/contents.png' | |
34 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
35 | <td class='online-navigation'><img src='../icons/blank.png' | |
36 | border='0' height='32' alt='' width='32' /></td> | |
37 | <td class='online-navigation'><img src='../icons/blank.png' | |
38 | border='0' height='32' alt='' width='32' /></td> | |
39 | </tr></table> | |
40 | <div class='online-navigation'> | |
41 | <b class="navlabel">Previous:</b> | |
42 | <a class="sectref" rel="prev" href="building.html">3. Building C and</A> | |
43 | <b class="navlabel">Up:</b> | |
44 | <a class="sectref" rel="parent" href="building.html">3. Building C and</A> | |
45 | <b class="navlabel">Next:</b> | |
46 | <a class="sectref" rel="next" href="building-on-windows.html">4. Building C and</A> | |
47 | </div> | |
48 | <hr /></div> | |
49 | </DIV> | |
50 | <!--End of Navigation Panel--> | |
51 | ||
52 | <H1><A NAME="SECTION005100000000000000000"></A><A NAME="distributing"></A> | |
53 | <BR> | |
54 | 3.1 Distributing your extension modules | |
55 | ||
56 | </H1> | |
57 | ||
58 | <P> | |
59 | When an extension has been successfully build, there are three ways to | |
60 | use it. | |
61 | ||
62 | <P> | |
63 | End-users will typically want to install the module, they do so by | |
64 | running | |
65 | ||
66 | <P> | |
67 | <div class="verbatim"><pre> | |
68 | python setup.py install | |
69 | </pre></div> | |
70 | ||
71 | <P> | |
72 | Module maintainers should produce source packages; to do so, they run | |
73 | ||
74 | <P> | |
75 | <div class="verbatim"><pre> | |
76 | python setup.py sdist | |
77 | </pre></div> | |
78 | ||
79 | <P> | |
80 | In some cases, additional files need to be included in a source | |
81 | distribution; this is done through a <span class="file">MANIFEST.in</span> file; see the | |
82 | distutils documentation for details. | |
83 | ||
84 | <P> | |
85 | If the source distribution has been build successfully, maintainers | |
86 | can also create binary distributions. Depending on the platform, one | |
87 | of the following commands can be used to do so. | |
88 | ||
89 | <P> | |
90 | <div class="verbatim"><pre> | |
91 | python setup.py bdist_wininst | |
92 | python setup.py bdist_rpm | |
93 | python setup.py bdist_dumb | |
94 | </pre></div> | |
95 | ||
96 | <DIV CLASS="navigation"> | |
97 | <div class='online-navigation'> | |
98 | <p></p><hr /> | |
99 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> | |
100 | <tr> | |
101 | <td class='online-navigation'><a rel="prev" title="3. Building C and" | |
102 | href="building.html"><img src='../icons/previous.png' | |
103 | border='0' height='32' alt='Previous Page' width='32' /></A></td> | |
104 | <td class='online-navigation'><a rel="parent" title="3. Building C and" | |
105 | href="building.html"><img src='../icons/up.png' | |
106 | border='0' height='32' alt='Up One Level' width='32' /></A></td> | |
107 | <td class='online-navigation'><a rel="next" title="4. Building C and" | |
108 | href="building-on-windows.html"><img src='../icons/next.png' | |
109 | border='0' height='32' alt='Next Page' width='32' /></A></td> | |
110 | <td align="center" width="100%">Extending and Embedding the Python Interpreter</td> | |
111 | <td class='online-navigation'><a rel="contents" title="Table of Contents" | |
112 | href="contents.html"><img src='../icons/contents.png' | |
113 | border='0' height='32' alt='Contents' width='32' /></A></td> | |
114 | <td class='online-navigation'><img src='../icons/blank.png' | |
115 | border='0' height='32' alt='' width='32' /></td> | |
116 | <td class='online-navigation'><img src='../icons/blank.png' | |
117 | border='0' height='32' alt='' width='32' /></td> | |
118 | </tr></table> | |
119 | <div class='online-navigation'> | |
120 | <b class="navlabel">Previous:</b> | |
121 | <a class="sectref" rel="prev" href="building.html">3. Building C and</A> | |
122 | <b class="navlabel">Up:</b> | |
123 | <a class="sectref" rel="parent" href="building.html">3. Building C and</A> | |
124 | <b class="navlabel">Next:</b> | |
125 | <a class="sectref" rel="next" href="building-on-windows.html">4. Building C and</A> | |
126 | </div> | |
127 | </div> | |
128 | <hr /> | |
129 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> | |
130 | </DIV> | |
131 | <!--End of Navigation Panel--> | |
132 | <ADDRESS> | |
133 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. | |
134 | </ADDRESS> | |
135 | </BODY> | |
136 | </HTML> |