From 3b6b8173897dc0890fa59d18563d8e134b9d404e Mon Sep 17 00:00:00 2001 From: Baul Date: Tue, 27 Oct 2020 10:50:43 +0800 Subject: [PATCH] allow python 3 interpreter with debuginfo use maturin --- src/python_interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python_interpreter.rs b/src/python_interpreter.rs index 457194ec8..ab269f9cb 100644 --- a/src/python_interpreter.rs +++ b/src/python_interpreter.rs @@ -342,8 +342,8 @@ fn fun_with_abiflags( if message.minor >= 8 { // for 3.8, "builds with and without pymalloc are ABI compatible" and the flag dropped Ok(abiflags.to_string()) - } else if abiflags != "m" { - bail!("A python 3 interpreter on linux or mac os must have 'm' as abiflags ಠ_ಠ") + } else if (abiflags != "m") && (abiflags != "dm") { + bail!("A python 3 interpreter on linux or mac os must have 'm' or 'dm' as abiflags ಠ_ಠ") } else { Ok(abiflags.to_string()) }