blob: a5a2e27635c3270cda30d86ff04eca2edecb7ccc [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
CROS_WORKON_COMMIT="146d42d1fa94528972ff70dc4c71a17978b67d35"
CROS_WORKON_TREE="b002aeb54c7bdfd0f1afb85b17b7d8cad7aeb280"
PYTHON_COMPAT=( python2_7 )
inherit cros-workon python-r1
CROS_WORKON_PROJECT="chromiumos/infra_virtualenv"
CROS_WORKON_LOCALNAME="../../infra_virtualenv"
DESCRIPTION="Python virtualenv for Chromium OS infrastructure"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/infra_virtualenv/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
RDEPEND="
${PYTHON_DEPS}
dev-python/virtualenv[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
src_configure() {
cros-workon_src_configure
python_setup
}
src_install() {
insinto "/opt/infra_virtualenv"
doins -r *
fperms -R 755 /opt/infra_virtualenv/bin
python_optimize "${D}/opt/infra_virtualenv"
}
src_test() {
./bin/run_tests || die "Tests failed!"
}