blob: 08765a796f1dfa56eabf5cfcdeb20553736c8552 [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="59c985f74effd99f7dac76742b074ac9da076641"
CROS_WORKON_TREE="2d0e7fe5c5d30219815cf2729e1f71065a51c5d5"
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!"
}