Skip to content

Commit

Permalink
graalpy: no support for C extensions on windows in latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Oct 13, 2023
1 parent 5f0616d commit ee0d6ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyo3-build-config/src/import_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use python3_dll_a::ImportLibraryGenerator;
use target_lexicon::{Architecture, OperatingSystem, Triple};

use super::{PythonImplementation, PythonVersion};
use crate::errors::{Context, Result};
use crate::errors::{Context, Error, Result};

/// Generates the `python3.dll` or `pythonXY.dll` import library for Windows targets.
///
Expand Down Expand Up @@ -42,7 +42,9 @@ pub(super) fn generate_import_lib(
let implementation = match py_impl {
PythonImplementation::CPython => python3_dll_a::PythonImplementation::CPython,
PythonImplementation::PyPy => python3_dll_a::PythonImplementation::PyPy,
PythonImplementation::GraalPy => python3_dll_a::PythonImplementation::GraalPy,
PythonImplementation::GraalPy => {
return Err(Error::from("No support for GraalPy on Windows"))
}
};

ImportLibraryGenerator::new(&arch, &env)
Expand Down

0 comments on commit ee0d6ed

Please sign in to comment.