5

I'm trying to find out what's the reason of error: Unable to find vcvarsall.bat after pip install greenlet. I'd like to set log level used by distutils so that debug messages like log.debug("Unable to find productdir in registry") would get printed. After looking at def parse_command_line(self): I thought pip install --install-option="-vv" greenlet should work but it doesn't (verbosity is still 1).

How can I do this?

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366

2 Answers2

6

The correct way is to use the --global-option="-vv" switch for pip install, which passes the option in between setup.py and install when invoking setup.py

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
0

Try to set DISTUTILS_DEBUG in the environment.

merwok
  • 6,779
  • 1
  • 28
  • 42
  • This environment variable is used only locally [in](http://hg.python.org/cpython/file/8527427914a2/Lib/distutils/cmd.py#l186) cmd.py and [in](http://hg.python.org/cpython/file/8527427914a2/Lib/distutils/filelist.py#l42) filelist.py modules and does not effect debug level used by [`Log`](http://hg.python.org/cpython/file/8527427914a2/Lib/distutils/log.py#l14) class in log.py module. – Piotr Dobrogost Jan 04 '12 at 11:35
  • 1
    Ah, I had forgotten that debug and log were separate things in distutils. Glad we ripped all that off in favor of simple logging in distutils2. – merwok Jan 04 '12 at 15:40
  • You mean distutils2 doesn't use Python standard logging module? – Piotr Dobrogost Jan 04 '12 at 16:35
  • I mean it simply uses the standard logging module :) – merwok Jan 07 '12 at 15:30