mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
Consult macports for pyuic4, throw error if it's unavailable
This commit is contained in:
parent
c0003c4c03
commit
3ec1bd4b49
1 changed files with 12 additions and 2 deletions
|
|
@ -13,8 +13,18 @@ mkdir -p ankiqt/forms
|
|||
|
||||
if [ xDarwin = x$(uname) ]
|
||||
then
|
||||
if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
|
||||
then
|
||||
pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
|
||||
pyrcc=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyrcc4
|
||||
elif [ -e /opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
|
||||
then
|
||||
pyuic=/opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
|
||||
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyrcc4
|
||||
else
|
||||
echo 'Unable to find pyuic4. Try `port install py-pyqt4`?'
|
||||
exit
|
||||
fi
|
||||
else
|
||||
pyuic=pyuic4
|
||||
pyrcc=pyrcc4
|
||||
|
|
|
|||
Loading…
Reference in a new issue