File: python-limited-stable-api.patch

package info (click to toggle)
netplan.io 1.1.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,440 kB
  • sloc: python: 34,441; ansic: 13,683; xml: 4,989; javascript: 2,165; sh: 419; makefile: 118
file content (36 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Lukas_M=C3=A4rdian?= <slyon@ubuntu.com>
Date: Tue, 19 Mar 2024 12:49:11 +0100
Subject: Make use of Python's stable C API (abi3.so)

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2050881
Forwarded: https://pad.lv/2050881
---
 meson.build                     | 2 +-
 python-cffi/netplan/meson.build | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 68c740f..16f8166 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@ project('netplan', 'c',
             'warning_level=2',
             'werror=true',
         ],
-        meson_version: '>= 0.61.0',
+        meson_version: '>= 1.3.0',
 )
 
 glib = dependency('glib-2.0')
diff --git a/python-cffi/netplan/meson.build b/python-cffi/netplan/meson.build
index 2f820d1..17b6614 100644
--- a/python-cffi/netplan/meson.build
+++ b/python-cffi/netplan/meson.build
@@ -24,6 +24,7 @@ cffi_pyext = python.extension_module(
     link_with: [libnetplan],
     subdir: 'netplan',
     install: true,
+    limited_api: '3.10',
 )
 
 bindings_sources = [