From c41057aa523b62504a61d46cc4b05f387bc3c988 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 6 Jul 2017 17:54:45 -0700 Subject: [PATCH] Code warning for the well-intentioned folks that keep wanting to change this Signed-off-by: Joffrey F --- compose/cli/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/cli/__init__.py b/compose/cli/__init__.py index 379059c1a..2574a311f 100644 --- a/compose/cli/__init__.py +++ b/compose/cli/__init__.py @@ -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 )