-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed

Description
Originally reported by: Alan (Bitbucket: Alan, GitHub: Alan)
Tested with setuptools 15.2 on Python 2.7.6 (Ubuntu 14.04)
Consider the following example setup.py:
from setuptools import setup, find_packages
setup(
name='dummy',
description="dummy",
long_description="dummy",
author="Alan Franzoni",
author_email="[email protected]",
url="https://example.com",
version="1.2.3",
setup_requires = ["setuptools_git == 1.1" ],
license="Apache-2.0",
include_package_data=True,
zip_safe=False
)
The first time I execute a --version command, even with the --quiet switch and redirecting stderr, I get this output:
(stenv)alan@workstation:/tmp/stbug$ python setup.py --quiet --version 2>/dev/null
Installed /tmp/stbug/.eggs/setuptools_git-1.1-py2.7.egg
1.2.3
So, the version number I was expecting as the command's output gets intermingled with a logging message.
I think the log is useful, but should either be removed (at least when passing --quiet) when using the --version command, or should be sent to stderr.
Of course, further invokations work as expected, since the setup_requires egg is already there.
jwodder