From d5265cfbac7c9d0fafe44e0cda56db129a770f65 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Mon, 30 Jan 2023 16:09:45 +0530 Subject: [PATCH] python: remove --without-doc-strings It breaks the inspect.signature function for classes that don't explicitly set a constructor, because the `__text_signature__` attribute is empty ``` from inspect import signature class Test: pass print(signature(Test.__init__)) ``` This is used in some python modules like telethon --- extra/python/build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/python/build b/extra/python/build index 05baf42c..9c13bac3 100755 --- a/extra/python/build +++ b/extra/python/build @@ -20,8 +20,7 @@ done --enable-shared \ --with-system-expat \ --with-system-ffi \ - --with-ensurepip=yes \ - --without-doc-strings + --with-ensurepip=yes make EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=0x100000" make install