From: Nilesh Patra Date: Fri, 30 Dec 2022 14:34:01 +0000 (+0000) Subject: Add patch to fix proper so ext X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1^2^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d004947ed6babe5958b89ccdabb2839dbf31e45a;p=python-pysam.git Add patch to fix proper so ext --- 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