Mercurial > cpython-lru_cache-weakref
annotate Lib/distutils/command/command_template @ 51749:1408feec0084 3.0
Merged revisions 69798 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r69798 | benjamin.peterson | 2009-02-19 22:02:38 -0600 (Thu, 19 Feb 2009) | 13 lines
Merged revisions 69769,69776 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69769 | georg.brandl | 2009-02-19 02:30:06 -0600 (Thu, 19 Feb 2009) | 1 line
#5310, #3558: fix operator precedence table.
........
r69776 | georg.brandl | 2009-02-19 10:34:51 -0600 (Thu, 19 Feb 2009) | 2 lines
#5317: update IronPython URL.
........
................
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 20 Feb 2009 04:05:32 +0000 |
| parents | a6d3930b5613 |
| children |
| 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 |
|
43026
a6d3930b5613
General cleanup, raise normalization in Lib/distutils.
Collin Winter <collinw@gmail.com>
parents:
12795
diff
changeset
|
13 class x(Command): |
|
12707
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 |
|
43026
a6d3930b5613
General cleanup, raise normalization in Lib/distutils.
Collin Winter <collinw@gmail.com>
parents:
12795
diff
changeset
|
24 def initialize_options(self): |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
25 self. = None |
|
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 |
|
43026
a6d3930b5613
General cleanup, raise normalization in Lib/distutils.
Collin Winter <collinw@gmail.com>
parents:
12795
diff
changeset
|
29 def finalize_options(self): |
|
12708
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
30 if self.x is None: |
|
35305991719b
Changed default developer name.
Gregory P. Smith <greg@mad-scientist.com>
parents:
12707
diff
changeset
|
31 self.x = |
|
12707
9abefc5b1d89
Template for writing Distutils command modules.
Gregory P. Smith <greg@mad-scientist.com>
parents:
diff
changeset
|
32 |
|
43026
a6d3930b5613
General cleanup, raise normalization in Lib/distutils.
Collin Winter <collinw@gmail.com>
parents:
12795
diff
changeset
|
33 def run(self): |
