@@ -61,7 +61,7 @@ def install_env(self):
6161 venv_path = self .temp_path / self .VENV_NAME
6262 self .log (f'Initial venv with pip: { venv_path .absolute ()} ' )
6363 if self .FASTER_PREPARE_PIP :
64- venv .create (env_dir = venv_path , with_pip = False )
64+ venv .create (env_dir = venv_path , system_site_packages = False , with_pip = False )
6565 import shutil
6666
6767 import pip
@@ -73,7 +73,7 @@ def install_env(self):
7373 target = venv_path / 'lib' / pyv / 'site-packages' / 'pip'
7474 shutil .copytree (pip_dir , target )
7575 else :
76- venv .create (env_dir = venv_path , with_pip = True )
76+ venv .create (env_dir = venv_path , system_site_packages = False , with_pip = True )
7777 if not venv_path .is_dir ():
7878 raise FileNotFoundError (str (venv_path ))
7979
@@ -108,8 +108,10 @@ def install_packages(self):
108108 return result
109109
110110 def freeze_requirements (self , output ):
111- print (output , flush = True )
112- if self .output_path != '-' :
111+ if self .output_path == '-' :
112+ print (output , flush = True )
113+ else :
114+ print (output , file = sys .stderr , flush = True )
113115 with open (self .output_path , 'w' , encoding = 'utf-8' ) as f :
114116 print (output , file = f , flush = True )
115117
0 commit comments