mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
makes the build_ui script more robust by allowing pyuic4 to be anywhere on the path
This commit is contained in:
parent
da173c1236
commit
eac188170a
1 changed files with 23 additions and 18 deletions
|
@ -11,8 +11,12 @@ fi
|
||||||
|
|
||||||
mkdir -p ankiqt/forms
|
mkdir -p ankiqt/forms
|
||||||
|
|
||||||
if [ xDarwin = x$(uname) ]
|
pyuic=`which pyuic4`
|
||||||
then
|
pyrcc=`which pyrcc4`
|
||||||
|
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
if [ xDarwin = x$(uname) ]
|
||||||
|
then
|
||||||
if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
|
if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
|
||||||
then
|
then
|
||||||
pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
|
pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
|
||||||
|
@ -35,11 +39,12 @@ then
|
||||||
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
|
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
|
||||||
else
|
else
|
||||||
echo 'Unable to find pyuic4. If you use macpors try `port install py-pyqt4`. If you use homebrew try `brew install pyqt`.'
|
echo 'Unable to find pyuic4. If you use macpors try `port install py-pyqt4`. If you use homebrew try `brew install pyqt`.'
|
||||||
exit
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Unable to find pyuic4 on your path! Please install it and try this script again."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
pyuic=pyuic4
|
|
||||||
pyrcc=pyrcc4
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
init=ankiqt/forms/__init__.py
|
init=ankiqt/forms/__init__.py
|
||||||
|
|
Loading…
Reference in a new issue