diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2021-06-24 11:53:01 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2021-06-24 11:53:01 +0000 |
commit | 25481bb5081d76cb3f61763e58fd2c7f167487df (patch) | |
tree | 06e2ed05f0eec23fdb6ee3f5b371f5ab15c27bac | |
parent | 2021-06-24 11:37:26 UTC (diff) | |
parent | python-utils-r1.eclass: Revert "Remove python_optimize support..." (diff) | |
download | gentoo-25481bb5081d76cb3f61763e58fd2c7f167487df.tar.gz gentoo-25481bb5081d76cb3f61763e58fd2c7f167487df.tar.bz2 gentoo-25481bb5081d76cb3f61763e58fd2c7f167487df.zip |
Merge updates from master
-rw-r--r-- | dev-python/google-api-core/google-api-core-1.30.0.ebuild | 1 | ||||
-rw-r--r-- | eclass/python-utils-r1.eclass | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/dev-python/google-api-core/google-api-core-1.30.0.ebuild b/dev-python/google-api-core/google-api-core-1.30.0.ebuild index 1b0c182a7a3c..183edfac0b1a 100644 --- a/dev-python/google-api-core/google-api-core-1.30.0.ebuild +++ b/dev-python/google-api-core/google-api-core-1.30.0.ebuild @@ -31,6 +31,7 @@ RDEPEND=" BDEPEND=" test? ( dev-python/grpcio[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] dev-python/rsa[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] ) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index d43311762f9f..7488802332f6 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -597,14 +597,18 @@ python_optimize() { instpath=/${instpath##/} case "${EPYTHON}" in + python2.7|python3.[34]) + "${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}" + "${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}" + ;; python*|pypy3) - # both levels of optimization are separate since py3.5 + # both levels of optimization are separate since 3.5 "${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}" "${PYTHON}" -O -m compileall -q -f -d "${instpath}" "${d}" "${PYTHON}" -OO -m compileall -q -f -d "${instpath}" "${d}" ;; *) - die "Unknown impl for python_optimize: ${EPYTHON}" + "${PYTHON}" -m compileall -q -f -d "${instpath}" "${d}" ;; esac done |