diff options
author | Erik Bray <erik.m.bray@gmail.com> | 2016-09-07 17:09:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-07 17:09:47 +0200 |
commit | 581aada0cd8b0aa408dddec613101dc1b8c4c3f4 (patch) | |
tree | 41e2043ee2e5b37b46cbe6ed04440ff90635e975 /Cython/Utility/ModuleSetupCode.c | |
parent | f0091a9d6580785b868e4660b3a53027a2447a3e (diff) | |
download | cython-581aada0cd8b0aa408dddec613101dc1b8c4c3f4.tar.gz |
setup.py shouldn't write arbitrarily to stdout (especially when passed display options)
In general it's best for actions performed in `setup.py` to be deferred until the command to which they are relevant is actually run. For example most of what `compile_cython_modules` does should be deferred until finalizing the `build_ext` command. But as a simpler workaround, just ensure that anything it prints is to stderr.
Otherwise this breaks certain assumptions, such as that `./setup.py --name` will print (on stdout) the distribution name (and nothing else), and likewise for `./setup.py --version`.
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
0 files changed, 0 insertions, 0 deletions