forward verbose flag to build dependencies installs
"""Build Environment used for isolation during sdist building
"""
+import logging
import os
import sys
from distutils.sysconfig import get_python_lib
@@ -11,6 +12,9 @@ from pip._internal.utils.temp_dir import TempDirectory
from pip._internal.utils.ui import open_spinner
+logger = logging.getLogger(__name__)
+
+
class BuildEnvironment(object):
"""Creates and manages an isolated environment to install build deps
"""
@@ -78,6 +82,8 @@ class BuildEnvironment(object):
'--no-user', '--prefix', self.path, '--no-warn-script-location',
'--only-binary', ':all:',
]
+ if logger.getEffectiveLevel() <= logging.DEBUG:
+ args.append('-v')
if finder.index_urls:
args.extend(['-i', finder.index_urls[0]])
for extra_index in finder.index_urls[1:]:
