rest25/distutils/examples.rst => rest262/distutils/examples.rst | ||
---|---|---|
6 | ||
7 | This chapter provides a number of basic examples to help get started with | |
8 | distutils. Additional information about using distutils can be found in the | |
9 | Distutils Cookbook. | |
10 | ||
11 | ||
12 | .. seealso:: | |
13 | ||
n | 14- | `Distutils Cookbook <http://www.python.org/cgi-bin/moinmoin/DistutilsCookbook>`_ |
n | 14+ | `Distutils Cookbook <http://wiki.python.org/moin/Distutils/Cookbook>`_ |
15 | Collection of recipes showing how to achieve more control over distutils. | |
16 | ||
17 | ||
18 | .. _pure-mod: | |
19 | ||
20 | Pure Python distribution (by module) | |
21 | ==================================== | |
22 | ||
26 | ||
27 | In the simplest case, you'll have two files to worry about: a setup script and | |
28 | the single module you're distributing, :file:`foo.py` in this example:: | |
29 | ||
30 | <root>/ | |
31 | setup.py | |
32 | foo.py | |
33 | ||
t | 34- | (In all diagrams in this section, ``<root>`` will refer to the distribution root |
t | 34+ | (In all diagrams in this section, *<root>* will refer to the distribution root |
35 | directory.) A minimal setup script to describe this situation would be:: | |
36 | ||
37 | from distutils.core import setup | |
38 | setup(name='foo', | |
39 | version='1.0', | |
40 | py_modules=['foo'], | |
41 | ) | |
42 |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|