export XDATAROOT=\${INSTALL_ROOT}/${PRODUCT}
export PATH=\${XDATAROOT}/bin:\${PATH}
export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
-export PYTHONPATH=\${PYTHONHOME}/lib${PYTHON_LIB_PREFIX}/python\${PYTHON_VERSION}:\${PYTHONPATH}
+export PYTHONPATH=\${XDATAROOT}/lib${PYTHON_LIB_PREFIX}/python\${PYTHON_VERSION}:\${PYTHONPATH}
##
EOF
(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+check_job ${PRODUCT_DIR}/MAKECHECK.LOG make check
+
cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
print_env