ports/devel/py-rencode/patches/patch-setup_py

23 lines
534 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Avoid cython due to build error:
ValueError: 'rencode/rencode.pyx' doesn't match any files
Remove platform specific optimizations.
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -36,12 +36,12 @@ except ImportError as ex:
from setuptools.command.build_ext import build_ext
cythonize = False
+cythonize = False
source_ext = ".pyx" if cythonize else ".c"
ext_modules = [
Extension(
"rencode._rencode",
- extra_compile_args=["-O3"],
sources=["rencode/rencode" + source_ext],
),
]