The internal dependency generator which eventually calls pythondeps.sh and the like does uses libmagic (ie file) to figure file types, so fixing file does help.
The internal dependency generator which eventually calls pythondeps.sh and the like does uses libmagic (ie file) to figure file types, so fixing file does help.