|
Original |
Translation |
|
157
|
|
|
|
158
|
And on Windows, the configuration files are:
|
|
|
159
|
:file:`{prefix}\\Lib\\distutils\\distutils.cfg`
|
|
|
160
|
|
|
|
161
|
|
162
|
|
|
|
163
|
On all platforms, the "personal" file can be temporarily disabled by passing the `--no-user-cfg` option.
|
|
|
164
|
Strictly speaking, the system-wide configuration file lives in the directory where the Distutils are installed; under Python 1.6 and later on Unix, this is as shown. For Python 1.5.2, the Distutils will normally be installed to :file:`{prefix}/lib/python1.5/site-packages/distutils`, so the system configuration file should be put there under Python 1.5.2.
|
|
|
165
|
On Unix, if the :envvar:`HOME` environment variable is not defined, the user's home directory will be determined with the :func:`getpwuid` function from the standard :mod:`pwd` module. This is done by the :func:`os.path.expanduser` function used by Distutils.
|
|
|
166
|
I.e., in the current directory (usually the location of the setup script).
|
|