cd ${BUILD_DIR}/$k
cp -R $SOURCE_DIR/$k-${OTP[$k]}/* .
#
- if [ $k == "otpod" ]; then
- ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL
- if [ $? -ne 0 ]; then
- echo "ERROR on ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL"
- exit 4
- fi
- else
- $PYTHONBIN setup.py build
- if [ $? -ne 0 ]
- then
- echo "ERROR on ${PYTHONBIN} setup.py build"
- exit 4
- fi
- #
- $PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL
- if [ $? -ne 0 ]
- then
- echo "ERROR on ${PYTHONBIN} setup.py install --prefix=$PRODUCT_INSTALL"
- exit 5
- fi
+ ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL
+ if [ $? -ne 0 ]; then
+ echo "ERROR on ${PYTHONBIN} -m pip install --cache-dir=$BUILD_DIR/cache/pip . --no-deps --prefix=$PRODUCT_INSTALL"
+ exit 4
fi
+ #
echo "INFO: check presence of $PRODUCT_INSTALL/local"
if [ -d "$PRODUCT_INSTALL/local" ]; then
echo "INFO: $PRODUCT_INSTALL/local is present - reearrange ..."