Forked from lokkju/find_system_python_dylibs.sh
Last active
January 28, 2018 19:37
-
-
Save gyaresu/cb34de99bd8bb62a3f56 to your computer and use it in GitHub Desktop.
This script prints the filenames of any libs in your /usr/local/lib that depend on the System Python. It is especially useful if you use a non-system Python, but have previously compiled extensions against the System Python - it will tell you which need to be recompiled.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "This script prints the filenames of any dylibs in your /usr/local/ that depend on the System Python" | |
for f in `find /usr/local/lib`; do | |
otool -L "$f" 2> /dev/null| grep Python | grep System &> /dev/null | |
status=$? | |
if [ $status -eq 0 ]; then | |
echo "$status: $f" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment