Pārlūkot izejas kodu

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

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 8 gadi atpakaļ
vecāks
revīzija
36772b555c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      compose/cli/__init__.py

+ 2 - 0
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
     )