Skip to content

Commit

Permalink
dev-python/pydantic-core: Disable mimalloc since it's buggy
Browse files Browse the repository at this point in the history
Disable mimalloc since it fails to -latomic on some platforms, and since
it's deep static Rust crap, it's easier to disable it entirely than
fight this nonsense.

Closes: https://bugs.gentoo.org/912341
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Aug 16, 2023
1 parent 6ff9fa4 commit 6e315c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ distutils_enable_tests pytest

QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pydantic_core/_pydantic_core.*.so"

DISTUTILS_ARGS=(
# disable mimalloc since it fails due to -latomic underlinking on some
# platforms, https://bugs.gentoo.org/912341
--no-default-features
)

src_prepare() {
sed -i -e '/--benchmark/d' pyproject.toml || die
distutils-r1_src_prepare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ distutils_enable_tests pytest

QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pydantic_core/_pydantic_core.*.so"

DISTUTILS_ARGS=(
# disable mimalloc since it fails due to -latomic underlinking on some
# platforms, https://bugs.gentoo.org/912341
--no-default-features
)

src_prepare() {
sed -i -e '/--benchmark/d' pyproject.toml || die
sed -i -e '/^strip/d' Cargo.toml || die
Expand Down

0 comments on commit 6e315c3

Please sign in to comment.