Skip to content

Commit ee0d6ed

Browse files
committed
graalpy: no support for C extensions on windows in latest release
1 parent 5f0616d commit ee0d6ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyo3-build-config/src/import_lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use python3_dll_a::ImportLibraryGenerator;
77
use target_lexicon::{Architecture, OperatingSystem, Triple};
88

99
use super::{PythonImplementation, PythonVersion};
10-
use crate::errors::{Context, Result};
10+
use crate::errors::{Context, Error, Result};
1111

1212
/// Generates the `python3.dll` or `pythonXY.dll` import library for Windows targets.
1313
///
@@ -42,7 +42,9 @@ pub(super) fn generate_import_lib(
4242
let implementation = match py_impl {
4343
PythonImplementation::CPython => python3_dll_a::PythonImplementation::CPython,
4444
PythonImplementation::PyPy => python3_dll_a::PythonImplementation::PyPy,
45-
PythonImplementation::GraalPy => python3_dll_a::PythonImplementation::GraalPy,
45+
PythonImplementation::GraalPy => {
46+
return Err(Error::from("No support for GraalPy on Windows"))
47+
}
4648
};
4749

4850
ImportLibraryGenerator::new(&arch, &env)

0 commit comments

Comments
 (0)