diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-05-01 07:51:25 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-05-01 07:51:25 +0000 |
commit | e2a3b76e62c1ab2a493227e6b22dc74018c7ce1e (patch) | |
tree | fbf6a7c38f3b4a9baeb50a80b92609f0f90ca059 /eclass/distutils-r1.eclass | |
parent | 2022-05-01 07:33:06 UTC (diff) | |
parent | dev-lang/ruby: drop 2.6.9, 2.7.5 (diff) | |
download | gentoo-e2a3b76e62c1ab2a493227e6b22dc74018c7ce1e.tar.gz gentoo-e2a3b76e62c1ab2a493227e6b22dc74018c7ce1e.tar.bz2 gentoo-e2a3b76e62c1ab2a493227e6b22dc74018c7ce1e.zip |
Merge updates from master
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 6fc9f1b9c1ff..1573d803f3f6 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -106,6 +106,8 @@ esac # # - maturin - maturin backend # +# - pbr - pbr backend +# # - pdm - pdm.pep517 backend # # - poetry - poetry-core backend @@ -208,6 +210,10 @@ _distutils_set_globals() { bdep+=' >=dev-util/maturin-0.12.7[${PYTHON_USEDEP}]' ;; + pbr) + bdep+=' + >=dev-python/pbr-5.8.0-r1[${PYTHON_USEDEP}]' + ;; pdm) bdep+=' >=dev-python/pdm-pep517-0.12.3[${PYTHON_USEDEP}]' @@ -991,6 +997,9 @@ _distutils-r1_backend_to_key() { maturin) echo maturin ;; + pbr.build) + echo pbr + ;; pdm.pep517.api) echo pdm ;; @@ -1139,11 +1148,7 @@ distutils-r1_python_compile() { fi # distutils is parallel-capable since py3.5 - local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}" INF) - if [[ ${jobs} == INF ]]; then - local nproc=$(get_nproc) - jobs=$(( nproc + 1 )) - fi + local jobs=$(makeopts_jobs "${MAKEOPTS} ${*}") if [[ ${DISTUTILS_USE_PEP517} ]]; then # issue build_ext only if it looks like we have at least |