pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/py-reedsolo py-reedsolo: fix build with pyt...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3cb0229adf58
branches:  trunk
changeset: 372471:3cb0229adf58
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 25 10:40:22 2022 +0000

description:
py-reedsolo: fix build with python 3.10

diffstat:

 converters/py-reedsolo/distinfo               |   3 ++-
 converters/py-reedsolo/patches/patch-setup.py |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r cfc7f2360a75 -r 3cb0229adf58 converters/py-reedsolo/distinfo
--- a/converters/py-reedsolo/distinfo   Tue Jan 25 10:30:59 2022 +0000
+++ b/converters/py-reedsolo/distinfo   Tue Jan 25 10:40:22 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:06:50 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/01/25 10:40:22 wiz Exp $
 
 BLAKE2s (reedsolo-1.5.4.tar.gz) = 7c70f109d3c329f1759a883fa5b9c7d87117e9ff0a115f82dfc76b1c9a4e2897
 SHA512 (reedsolo-1.5.4.tar.gz) = f41203bbdae9012e72f723d38dd8ee93c9f9fbab62f4ed5dd1c2b9ca9b7e87f5fc91871049d7d952d8ee6be25ed2793c90ac7134eda5cc351e1adf8ed460e8df
 Size (reedsolo-1.5.4.tar.gz) = 271280 bytes
+SHA1 (patch-setup.py) = bce91d0950b473a27002667f69e244285f8dd8fa
diff -r cfc7f2360a75 -r 3cb0229adf58 converters/py-reedsolo/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py-reedsolo/patches/patch-setup.py     Tue Jan 25 10:40:22 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2022/01/25 10:40:23 wiz Exp $
+
+Fix build with python 3.10.
+https://github.com/tomerfiliba/reedsolomon/pull/38
+
+--- setup.py.orig      2020-05-20 06:35:49.000000000 +0000
++++ setup.py
+@@ -31,7 +31,7 @@ try:
+     # If Cython is installed, transpile the optimized Cython module to C and compile as a .pyd to be distributed
+     from Cython.Build import cythonize
+     print("Cython is installed, building creedsolo module")
+-    extensions = cythonize([ Extension('creedsolo', ['creedsolo.pyx']) ])
++    extensions = cythonize([ Extension('creedsolo', ['creedsolo.pyx']) ], force=True)
+ except ImportError:
+     # Else Cython is not installed (or user explicitly wanted to skip)
+     if '--native-compile' in sys.argv:



Home | Main Index | Thread Index | Old Index