[Distutils] A possible refactor/streamlining of PEP 517

Jeremy Kloth jeremy.kloth at gmail.com
Sat Jul 8 11:17:38 EDT 2017


On Fri, Jul 7, 2017 at 9:45 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 7 July 2017 at 23:23, Daniel Holth <dholth at gmail.com> wrote:
>> FYI distutils supports out of tree builds too. It is the -b argument to
>> 'setup.py build'.
>
> Sort of. That's short for "--bdist-dir" and tells distutils/setuptools
> not to use the "dist/" subdirectory for either build trees or the
> build artifacts. It doesn't say anything about where intermediate
> artifacts generated by compilers etc should end up.

No, Daniel is correct.  "setup.py *build* -b" is short for
--build-base which is where all build artifacts go, even those from
compilers.  It seems you are confusing it with "setup.py *bdist* -b"
which is indeed short for "--bdist-dir".

-- 
Jeremy Kloth


More information about the Distutils-SIG mailing list