summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-01-25 10:40:22 +0000
committerwiz <wiz@pkgsrc.org>2022-01-25 10:40:22 +0000
commit271c9c3038edd0ccb41417be2955491bfcf5ac99 (patch)
tree0b3f9eec9272124f19d2cafd0cc82f6a3186dbf7 /converters
parentf7e25f9b04a15752478e767b1861f54c28faaa9c (diff)
downloadpkgsrc-271c9c3038edd0ccb41417be2955491bfcf5ac99.tar.gz
py-reedsolo: fix build with python 3.10
Diffstat (limited to 'converters')
-rw-r--r--converters/py-reedsolo/distinfo3
-rw-r--r--converters/py-reedsolo/patches/patch-setup.py16
2 files changed, 18 insertions, 1 deletions
diff --git a/converters/py-reedsolo/distinfo b/converters/py-reedsolo/distinfo
index c879cff861a..2180663f79b 100644
--- a/converters/py-reedsolo/distinfo
+++ b/converters/py-reedsolo/distinfo
@@ -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 --git a/converters/py-reedsolo/patches/patch-setup.py b/converters/py-reedsolo/patches/patch-setup.py
new file mode 100644
index 00000000000..2f83f17464d
--- /dev/null
+++ b/converters/py-reedsolo/patches/patch-setup.py
@@ -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: