On 9 July 2017 at 01:17, Jeremy Kloth <jeremy.kl...@gmail.com> wrote: > On Fri, Jul 7, 2017 at 9:45 PM, Nick Coghlan <ncogh...@gmail.com> wrote: >> On 7 July 2017 at 23:23, Daniel Holth <dho...@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".
Aye, I assumed he was referring to the latter, as I wasn't able to find any documentation for "setup.py build" anywhere, and this is the first time I've ever heard of "build" being available as a separate setup.py command. Even given that clarification, thought, Nathaniel's point about folks doing local state manipulation directly in setup.py still stands. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig