mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
dev-python/dulwich-0.22.5-r1: drop hack, fix install without Rust
- drop previous rust-extension hack, eschwartz fixed this upstream - avoid requiring Rust to be installed (which defeats the purpose of native-extensions USE-flag) Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
@@ -74,21 +74,15 @@ distutils_enable_sphinx docs
|
||||
|
||||
QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/dulwich/_.*.so"
|
||||
|
||||
src_unpack() {
|
||||
cargo_src_unpack
|
||||
pkg_setup() {
|
||||
# avoid rust_pkg_setup which will die when there's no Rust found
|
||||
if use native-extensions ; then
|
||||
rust_pkg_setup # implicitly inherited through cargo
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if use !native-extensions; then
|
||||
# avoid hard dep on rust via setuptools_rust
|
||||
# https://github.com/jelmer/dulwich/issues/1405
|
||||
sed -i \
|
||||
-e '/from setuptools_rust/d' \
|
||||
-e '/^rust_extensions = \[/,/^\]/d' \
|
||||
setup.py || die
|
||||
fi
|
||||
src_unpack() {
|
||||
cargo_src_unpack
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
|
||||
Reference in New Issue
Block a user