Python: build against abi3 to support multiple Python versions

- Upgrade to pyo3 0.21 to enable timedelta for chrono
- Enable abi3 for multi-python support
This commit is contained in:
Simon Hausmann 2024-04-17 18:12:00 +02:00 committed by Simon Hausmann
parent 4c1d406561
commit 6408eaf0ad
7 changed files with 15 additions and 11 deletions

View file

@ -23,7 +23,7 @@ fn quit_event_loop() -> Result<(), errors::PyEventLoopError> {
use pyo3::prelude::*;
#[pymodule]
fn slint(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
fn slint(_py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
i_slint_backend_selector::with_platform(|_b| {
// Nothing to do, just make sure a backend was created
Ok(())