2006-10-20 13:54:38

An enhanced version of core Distutils' Distribution class.

Currently supported features, for *all* Python (2.2+) versions: (from Python 2.3+) download_url, classifiers - PEP 314 metadata fields

(from Python 2.5+) install_egg_info command - for setuptools requires, provides, obsoletes - PEP 314 metadata fields

(only available in 4Suite) requires_python - [PEP 345] a list of version restrictions for Python requires_external - [PEP 345] a list of external requirements command_mapping - maps command names to a module/class name that differs from the actual command name

If the current verbosity level is of greater than or equal to 'level' print 'msg' to stdout.

Extends Distribution.get_command_class() to search 'command_mapping' for modules that implement that requested command.

Overridden to add the commands defined by 'command_mapping' to the list of (command, description) tuples.

Overridden to add the commands defined by 'command_mapping' to the list of "standard commands".

- {'bdist_wininst': 'bdist_inno', 'install_docs': 'install_html'}
- {'bdist': 'BDist', 'bdist_dumb': None, 'bdist_egg': 'BDistEgg', 'bdist_inno': 'BDistInno', 'bdist_msi': None, 'bdist_rpm': 'BDistRpm', 'build': 'Build', 'build_clib': None, 'build_docs': 'BuildDocs', 'build_ext': 'BuildExt', ...}
- False
- ['config', 'build', 'clean', 'install', 'sdist', 'register', 'bdist', 'upload', 'generate']
- [('source-package', 's', 'run as if from a source dist (developer testing)')]

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C: def f(cls, arg1, arg2, ...): ... f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.
...

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C: def f(cls, arg1, arg2, ...): ... f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.
...

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C: def f(cls, arg1, arg2, ...): ... f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.
...

Write the PKG-INFO format data to a file object.

Supports metadata version 1.2 (PEP 345), 1.1 (PEP 314) and 1.0 (PEP 241) in a lowest common denominator fashion.
- None
- None
- None
None