diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-04-22 01:45:45 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-25 14:08:49 +0200 |
commit | a830c1249c408185b448ecb2b9e8a1eb997fac4a (patch) | |
tree | 63d08d8ad09006f7229edcec6dfc40295de2383d /eclass | |
parent | distutils-r1.eclass: use case for system-specific build quirks (diff) | |
download | gentoo-a830c1249c408185b448ecb2b9e8a1eb997fac4a.tar.gz gentoo-a830c1249c408185b448ecb2b9e8a1eb997fac4a.tar.bz2 gentoo-a830c1249c408185b448ecb2b9e8a1eb997fac4a.zip |
distutils-r1.eclass: support maturin backend
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index dd7f90340141..49c98290f30f 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -104,6 +104,8 @@ esac # # - jupyter - jupyter_packaging backend # +# - maturin - maturin backend +# # - pdm - pdm.pep517 backend # # - poetry - poetry-core backend @@ -212,6 +214,10 @@ _distutils_set_globals() { bdep+=' >=dev-python/jupyter_packaging-0.11.1[${PYTHON_USEDEP}]' ;; + maturin) + bdep+=' + >=dev-util/maturin-0.12.7[${PYTHON_USEDEP}]' + ;; pdm) bdep+=' >=dev-python/pdm-pep517-0.12.3[${PYTHON_USEDEP}]' @@ -992,6 +998,9 @@ _distutils-r1_backend_to_key() { jupyter_packaging.build_api) echo jupyter ;; + maturin) + echo maturin + ;; pdm.pep517.api) echo pdm ;; @@ -1210,6 +1219,14 @@ distutils-r1_python_compile() { esetup.py build -j "${jobs}" "${@}" fi ;; + maturin) + # auditwheel may attempt to auto-bundle libraries, bug #831171 + local -x MATURIN_PEP517_ARGS=--skip-auditwheel + + # support cargo.eclass' IUSE=debug if available + in_iuse debug && use debug && + MATURIN_PEP517_ARGS+=" --cargo-extra-args=--profile=dev" + ;; esac if [[ ${DISTUTILS_USE_PEP517} ]]; then |