[issue10946] bdist doesn’t pass --skip-build on to subcommands

Wojciech Wojtyniak report at bugs.python.org
Sun Apr 17 00:33:00 CEST 2011


Wojciech Wojtyniak <radious at gmail.com> added the comment:

Could you please at least describe the test that you mentioned (link doesn't work). I added line that passes skip_build from bdist.py to its subcommands and it worked for me (at least for simple cases) - base.py is not called.

If bdist wouldn't call any install_* in other way then via bdist_*, then we could use set_undefined_options in the last ones, but I'm not sure if it's safe. (If it is, I can provide appropriate patch.) 

Using set_undefined_options in install_* is definitely not safe, because it fails if parent process has not set skip_build. Also skip_build has to be set to None in install_* (set_... needs that to work) which obviously breaks it. Actually bdist_* sets skip_build like in my patch.

Patch attached.

Anyway test_skip_build() is still broken and needs a fix.

----------
keywords: +patch
nosy: +radious
Added file: http://bugs.python.org/file21689/skip_build.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10946>
_______________________________________


More information about the Python-bugs-list mailing list