Code warning for the well-intentioned folks that keep wanting to change this

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-07-06 17:54:45 -07:00 committed by Joffrey F
parent 2d21bf6a50
commit c41057aa52
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ try:
env[str('PIP_DISABLE_PIP_VERSION_CHECK')] = str('1')
s_cmd = subprocess.Popen(
# DO NOT replace this call with a `sys.executable` call. It breaks the binary
# distribution (with the binary calling itself recursively over and over).
['pip', 'freeze'], stderr=subprocess.PIPE, stdout=subprocess.PIPE,
env=env
)