blob: 9ca248c7d8a51012762575277edfcabd4754c8bb [file] [log] [blame]
Gary Wufab2c442017-07-12 14:55:37 -07001#!/bin/bash
2
3##############################################################################
4# Copyright (c) 2016 The Linux Foundation and others.
5##############################################################################
6
7ROBOT_VENV=$(mktemp -d --suffix=robot_venv)
8echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
9
10# The --system-site-packages parameter allows us to pick up system level
11# installed packages. This allows us to bake matplotlib which takes very long
12# to install into the image.
13virtualenv --system-site-packages "${ROBOT_VENV}"
14source "${ROBOT_VENV}/bin/activate"
15
16set -exu
17
18# Make sure pip itself us up-to-date.
19pip install --upgrade pip
20
21pip install --upgrade --no-binary pycparser pycparser
Gary Wu8495b272017-07-17 15:45:54 -070022pip install --upgrade pyOpenSSL==16.2.0 docker-py importlib requests scapy netifaces netaddr ipaddr simplejson demjson
eh552tf96d50a2017-08-29 15:24:05 +020023pip install --upgrade robotframework{,-{httplibrary,requests,sshlibrary,selenium2library,xvfb}}
24
25pip install xvfbwrapper
26pip install PyVirtualDisplay
Gary Wufab2c442017-07-12 14:55:37 -070027
28# Print installed versions.
29pip freeze
30
31# vim: sw=4 ts=4 sts=4 et ft=sh :