for f in "$TOOLS_DIR"/*.egg
do
if [ ! -e "$f" ]; then
error "Can not find xdevice package!"
fi
$PYTHON -m easy_install --user "$f" || echo "Error occurs to install $f!"
done
for f in "$TOOLS_DIR"/*.tar.gz
do
if [ ! -e "$f" ]; then
error "Can not find xdevice package!"
fi
$PYTHON -m pip install --user "$f" || echo "Error occurs to install $f!"
done