blob: f809ae3d7e9c83bea5afe5b19c807b727a64de86 [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="a070aaec477f1a6d192d70b0b2491d1184424aba"
CROS_WORKON_TREE="ff09d20f7f83d1481d8ffe6f43d1e7cdbe87c792"
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!"
}