1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/vigra/broken-workaround.patch
Sertonix 71385008f4 community/vigra: upgrade to 1.12.1
Also causes the C docs to not be included twice anymore
2025-02-27 19:02:13 +00:00

28 lines
869 B
Diff

Ref https://github.com/ukoethe/vigra/issues/502
--- a/vigranumpy/docsrc/conf.py.in
+++ b/vigranumpy/docsrc/conf.py.in
@@ -14,23 +14,6 @@
from __future__ import division, print_function
import sys, os, re
-# silent lots of 'arg is not a Python function' warnings
-import inspect
-
-_original_getargspec = inspect.getargspec
-
-def _getargspec_workaround(*args, **kw):
- try:
- return _original_getargspec(*args, **kw)
- except TypeError as e:
- if str(e).startswith('arg is not a Python function'):
- return inspect.ArgSpec([], None, None, None)
- else:
- raise
-
-inspect.getargspec = _getargspec_workaround
-_getargspec_workaround.__module__ = 'inspect'
-
# set the PATH of the current build, so that we don't create
# documentation for a possibly outdated installation
vigranumpy_path=r'@VIGRANUMPY_TMP_PATH@'