[Distutils] Re: Clarification on string arguments in PEP 517 hooks

2018-08-28 Thread Paul Moore
On Tue, 28 Aug 2018 at 07:56, Nick Coghlan wrote: > > On Mon., 20 Aug. 2018, 11:54 pm Paul Moore, wrote: >> >> My assumption is that the intent is that *all* strings, whether >> arguments or return values, must be Unicode. > > Handling bytes paths correctly cross-platform is a pain, so I think

[Distutils] Re: Clarification on string arguments in PEP 517 hooks

2018-08-28 Thread Nick Coghlan
On Mon., 20 Aug. 2018, 11:54 pm Paul Moore, wrote: > > My assumption is that the intent is that *all* strings, whether > arguments or return values, must be Unicode. > Handling bytes paths correctly cross-platform is a pain, so I think requiring frontends to always pass in Unicode makes sense.

[Distutils] Re: Clarification on string arguments in PEP 517 hooks

2018-08-20 Thread Paul Moore
On Mon, 20 Aug 2018 at 18:54, Thomas Kluyver wrote: > > On Mon, Aug 20, 2018, at 2:52 PM, Paul Moore wrote: > > The various hooks take directory paths as arguments, and typically > > return a filename (e.g., build_wheel). The returned filename is always > > explicitly noted as being *a unicode

[Distutils] Re: Clarification on string arguments in PEP 517 hooks

2018-08-20 Thread Thomas Kluyver
On Mon, Aug 20, 2018, at 2:52 PM, Paul Moore wrote: > The various hooks take directory paths as arguments, and typically > return a filename (e.g., build_wheel). The returned filename is always > explicitly noted as being *a unicode string*. However, argumnents > (metadata_directory in