DilithiumMatrix
DilithiumMatrix

Reputation: 18667

Hide egg-info folders from editable/develop mode

Packages that are frequently changing I install with pip install -e to make them editable (like --develop for setuptools), which creates a PACKAGE.egg-info folder in the install directory. This clutters the folder (sorry, I'm neurotic) and hampers path autocomplete in the folder.

Is there a way hide the egg-info folder, e.g. .PACKAGE.egg-info?

Upvotes: 1

Views: 641

Answers (1)

Martijn Pieters
Martijn Pieters

Reputation: 1124238

No, there isn't, the tooling that creates and reads those files are not so flexible that they'll accept .NAME.egg-info as an alternative to NAME.egg-info.

Instead, configure your shell or editor to ignore files with the .egg-info extension when autocompleting.

E.g., for VI, use the wildignore option:

set wildignore+=*.egg-info

or in bash, set FIGNORE:

export FIGNORE=".egg-info:$FIGNORE"

Upvotes: 2

Related Questions