We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b17c15 commit 9824bd8Copy full SHA for 9824bd8
distutils/dist.py
@@ -355,11 +355,9 @@ def _gen_paths(self):
355
filename = prefix + 'pydistutils.cfg'
356
if self.want_user_cfg:
357
try:
358
- user_home = pathlib.Path('~').expanduser()
+ yield pathlib.Path('~').expanduser() / filename
359
except RuntimeError:
360
- self.announce("Failed to locate user home directory. Skipping user config.", logging.WARNING)
361
- else:
362
- yield user_home / filename
+ warnings.warn("Failed to locate user home directory. Skipping user config.")
363
364
# All platforms support local setup.cfg
365
yield pathlib.Path('setup.cfg')
0 commit comments