SCons / scons

SCons - a software construction tool
http://scons.org
MIT License
2.1k stars 316 forks source link

Support for Python path-like objects #3442

Open mwichmann opened 5 years ago

mwichmann commented 5 years ago

Since scons was written, Python has grown support for "path-like objects" which are defined like this:

An object representing a file system path. A path-like object is either a str or bytes object representing a path, or an object implementing the os.PathLike protocol. An object that supports the os.PathLike protocol can be converted to a str or bytes file system path by calling the os.fspath() function; os.fsdecode() and os.fsencode() can be used to guarantee a str or bytes result instead, respectively. Introduced by PEP 519.

https://www.python.org/dev/peps/pep-0519/

This is a proposal to research if scons needs any work to properly support path-like objects in places where sconscripts are instructed about paths. I'm not reporting on any specific problem at this point, and it's a Python 3-only project since these do not exist in Python 2.

There was a short scons-dev topic on this: https://pairlist2.pair.net/pipermail/scons-dev/2019-September/004887.html

mwichmann commented 1 year ago

One step in this direction was PR #4400.