Skip to content

distutils does not support os.PathLike #92687

@taralx

Description

@taralx

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")

Filing this issue before I go in and make a PR to change these to os.PathLike checks. Any issues with that approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions