mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 09:31:06 +02:00
eclass/distutils-r1: Sync with Gentoo
It's from Gentoo commit 61b548c5d55986c662247789e07fecc54c7b3b1a.
This commit is contained in:
parent
feb865283a
commit
be50183ea9
@ -271,7 +271,7 @@ _distutils_set_globals() {
|
|||||||
;;
|
;;
|
||||||
maturin)
|
maturin)
|
||||||
bdep+='
|
bdep+='
|
||||||
>=dev-util/maturin-1.4.0[${PYTHON_USEDEP}]
|
>=dev-util/maturin-1.7.4[${PYTHON_USEDEP}]
|
||||||
'
|
'
|
||||||
;;
|
;;
|
||||||
no)
|
no)
|
||||||
@ -1257,13 +1257,21 @@ distutils_pep517_install() {
|
|||||||
cmd+=( cargo_env )
|
cmd+=( cargo_env )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set it globally in case we were using "standalone" wrapper
|
||||||
|
local -x HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
|
||||||
|
local -x VALIDATE_PYPROJECT_NO_NETWORK=1
|
||||||
|
local -x VALIDATE_PYPROJECT_NO_TROVE_CLASSIFIERS=1
|
||||||
|
if in_iuse debug && use debug; then
|
||||||
|
local -x SETUPTOOLS_RUST_CARGO_PROFILE=dev
|
||||||
|
fi
|
||||||
|
|
||||||
case ${DISTUTILS_USE_PEP517} in
|
case ${DISTUTILS_USE_PEP517} in
|
||||||
maturin)
|
maturin)
|
||||||
# `maturin pep517 build-wheel --help` for options
|
# `maturin pep517 build-wheel --help` for options
|
||||||
local maturin_args=(
|
local maturin_args=(
|
||||||
"${DISTUTILS_ARGS[@]}"
|
"${DISTUTILS_ARGS[@]}"
|
||||||
|
--auditwheel=skip # see bug #831171
|
||||||
--jobs="$(makeopts_jobs)"
|
--jobs="$(makeopts_jobs)"
|
||||||
--skip-auditwheel # see bug #831171
|
|
||||||
$(in_iuse debug && usex debug '--profile=dev' '')
|
$(in_iuse debug && usex debug '--profile=dev' '')
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1348,9 +1356,6 @@ distutils_pep517_install() {
|
|||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
setuptools)
|
setuptools)
|
||||||
if in_iuse debug && use debug; then
|
|
||||||
local -x SETUPTOOLS_RUST_CARGO_PROFILE=dev
|
|
||||||
fi
|
|
||||||
if [[ -n ${DISTUTILS_ARGS[@]} ]]; then
|
if [[ -n ${DISTUTILS_ARGS[@]} ]]; then
|
||||||
config_settings=$(
|
config_settings=$(
|
||||||
"${EPYTHON}" - "${DISTUTILS_ARGS[@]}" <<-EOF || die
|
"${EPYTHON}" - "${DISTUTILS_ARGS[@]}" <<-EOF || die
|
||||||
|
Loading…
x
Reference in New Issue
Block a user