-e dir

Ignore symlinks pointing outside the given directory.

Related Reading

compileall — Byte-compile Python libraries