Skip to content

Commit 75bf1b7

Browse files
committed
Fix PyPy import library name
1 parent 9b46300 commit 75bf1b7

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/lib.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,11 @@ impl ImportLibraryGenerator {
274274
///
275275
/// Returns the full import library file path under `out_dir`.
276276
fn implib_file_path(&self, out_dir: &Path, libext: &str) -> PathBuf {
277-
let libname = match self.implementation {
278-
PythonImplementation::CPython => match self.version {
279-
Some((major, minor)) => {
280-
format!("python{}{}{}", major, minor, libext)
281-
}
282-
None => format!("python3{}", libext),
283-
},
284-
PythonImplementation::PyPy => match self.version {
285-
Some((major, minor)) if (major, minor) >= (3, 9) => {
286-
format!("libpypy{}.{}-c{}", major, minor, libext)
287-
}
288-
_ => format!("libpypy3-c{}", libext),
289-
},
277+
let libname = match self.version {
278+
Some((major, minor)) => {
279+
format!("python{}{}{}", major, minor, libext)
280+
}
281+
None => format!("python3{}", libext),
290282
};
291283

292284
let mut libpath = out_dir.to_owned();

0 commit comments

Comments
 (0)