On weak compactness in the space of pettis integrable functions