Mercurial > cpython-lru_cache-weakref
annotate Lib/distutils/command/command_template @ 58765:2ba7677bfa95 legacy-trunk
testCopysign was defined twice in test_math; combine the definitions
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sat, 06 Feb 2010 23:11:25 +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 |
