What's the problem this feature will solve?
I prefer to use pathlib.Path objects, but helpers like distutils.Command.make_file only accept strings:
|
if isinstance(infiles, str): |
|
infiles = (infiles,) |
|
elif not isinstance(infiles, (list, tuple)): |
|
raise TypeError( |
|
"'infiles' must be a string, or a list or tuple of strings") |
Describe the solution you'd like
Filing this issue before I go in and make a PR to change these to os.PathLike checks. Any issues with that approach?
Alternative Solutions
No response
Additional context
Directed here from CPython: python/cpython#92687
Code of Conduct
What's the problem this feature will solve?
I prefer to use pathlib.Path objects, but helpers like
distutils.Command.make_fileonly accept strings:setuptools/setuptools/_distutils/cmd.py
Lines 387 to 391 in 1b25c06
Describe the solution you'd like
Filing this issue before I go in and make a PR to change these to
os.PathLikechecks. Any issues with that approach?Alternative Solutions
No response
Additional context
Directed here from CPython: python/cpython#92687
Code of Conduct