Package distutils :: Package tests :: Module test_dist :: Class TestDistribution
[hide private]
[frames] | no frames]

_ClassType TestDistribution

dist.Distribution --+
                    |
                   TestDistribution

Distribution subclasses that avoids the default search for configuration files.

The ._config_files attribute must be set before .parse_config_files() is called.

Instance Methods [hide private]
 
find_config_files(self)
Find as many configuration files as should be processed for this platform, and return a list of filenames in the order in which they should be parsed.

Inherited from dist.Distribution: __init__, announce, dump_option_dicts, finalize_options, get_command_class, get_command_list, get_command_obj, get_command_packages, get_option_dict, handle_display_options, has_c_libraries, has_data_files, has_ext_modules, has_headers, has_modules, has_pure_modules, has_scripts, is_pure, parse_command_line, parse_config_files, print_command_list, print_commands, reinitialize_command, run_command, run_commands

Class Variables [hide private]

Inherited from dist.Distribution: common_usage, display_option_names, display_options, global_options, negative_opt

Method Details [hide private]

find_config_files(self)

 

Find as many configuration files as should be processed for this platform, and return a list of filenames in the order in which they should be parsed. The filenames returned are guaranteed to exist (modulo nasty race conditions).

There are three possible config files: distutils.cfg in the Distutils installation directory (ie. where the top-level Distutils __inst__.py file lives), a file in the user's home directory named .pydistutils.cfg on Unix and pydistutils.cfg on Windows/Mac, and setup.cfg in the current directory.

Overrides: dist.Distribution.find_config_files
(inherited documentation)