Mercurial > cpython-lru_cache-weakref
annotate Lib/distutils/command/command_template @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | ee119051df77 |
| children | a6d3930b5613 |
| rev | line source |
|---|---|
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
1 """distutils.command.x |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
2 |
| 12795 | 3 Implements the Distutils 'x' command. |
| 4 """ | |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
5 |
|
12708
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
6 # created 2000/mm/dd, John Doe |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
7 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
8 __revision__ = "$Id$" |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
9 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
10 from distutils.core import Command |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
11 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
12 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
13 class x (Command): |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
14 |
|
12708
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
15 # Brief (40-50 characters) description of the command |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
16 description = "" |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
17 |
|
12708
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
18 # List of option tuples: long name, short name (None if no short |
|
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
19 # name), and help string. |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
20 user_options = [('', '', |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
21 ""), |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
22 ] |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
23 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
24 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
25 def initialize_options (self): |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
26 self. = None |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
27 self. = None |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
28 self. = None |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
29 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
30 # initialize_options() |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
31 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
32 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
33 def finalize_options (self): |
|
12708
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
34 if self.x is None: |
|
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
35 self.x = |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
36 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
37 # finalize_options() |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
38 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
39 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
40 def run (self): |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
41 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
42 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
43 # run() |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
44 |
|
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
45 # class x |
