blob: 55d36953ca8656b24717e36b598fe894b793019f [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
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/${PN}"
doins -r *
python_optimize "${D}/opt/${PN}"
}
src_test() {
./bin/run_tests || die "Tests failed!"
}