From d004947ed6babe5958b89ccdabb2839dbf31e45a Mon Sep 17 00:00:00 2001 From: Nilesh Patra Date: Fri, 30 Dec 2022 14:34:01 +0000 Subject: [PATCH] Add patch to fix proper so ext --- debian/patches/python3.11.patch | 14 ++++++++++++++ debian/patches/series | 1 + 2 files changed, 15 insertions(+) create mode 100644 debian/patches/python3.11.patch diff --git a/debian/patches/python3.11.patch b/debian/patches/python3.11.patch new file mode 100644 index 0000000..507b31c --- /dev/null +++ b/debian/patches/python3.11.patch @@ -0,0 +1,14 @@ +Description: Add patch to return proper sysconf so for current python +Author: Nilesh Patra +Last-Update: 2022-12-30 +--- a/pysam/__init__.py ++++ b/pysam/__init__.py +@@ -96,5 +96,7 @@ + if pysam.config.HTSLIB == "builtin": + pysam_libs.append('libchtslib') + +- so = sysconfig.get_config_var('SO') ++ so = sysconfig.get_config_var('EXT_SUFFIX') ++ if not so: ++ so = sysconfig.get_config_var('SO') + return [os.path.join(dirname, x + so) for x in pysam_libs] diff --git a/debian/patches/series b/debian/patches/series index 3e2bcd0..973b469 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ skip_test_remote.patch clean_less skip-test-on-32-bit.patch disable-tests-python3.11.patch +python3.11.patch -- 2.30.2