def get_venv_packages(venv_path):
 with open(get_index_filename(venv_path)) as reader:
  return set((p.strip() for p in reader.read().split('\n') if p.strip()))

def get_venv_packages ( venv_path ) : with open ( get_index_filename ( venv_path ) ) as reader : return set ( ( p . strip ( ) for p in reader . read ( ) . split ( '\n' ) if p . strip ( ) ) )
returns the packages installed in the virtual environment using the package index file .