diff --git a/packages/python/build.sh b/packages/python/build.sh index ea0e934da8..11543763c4 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -17,6 +17,9 @@ TERMUX_PKG_REPLACES="python-dev" # Let "python3" will be alias to this package. TERMUX_PKG_PROVIDES="python3" +# https://github.com/termux/termux-packages/issues/15908 +TERMUX_MAKE_PROCESSES=1 + # Set ac_cv_func_wcsftime=no to avoid errors such as "character U+ca0025 is not in range [U+0000; U+10ffff]" # when executing e.g. "from time import time, strftime, localtime; print(strftime(str('%Y-%m-%d %H:%M'), localtime()))" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no ac_cv_func_wcsftime=no" diff --git a/packages/python/disable-parallel-build.patch b/packages/python/disable-parallel-build.patch new file mode 100644 index 0000000000..5c0695af2b --- /dev/null +++ b/packages/python/disable-parallel-build.patch @@ -0,0 +1,13 @@ +https://github.com/termux/termux-packages/issues/15908 + +--- a/setup.py ++++ b/setup.py +@@ -306,8 +306,6 @@ + self.failed_on_import = [] + self.missing = [] + self.disabled_configure = [] +- if '-j' in os.environ.get('MAKEFLAGS', ''): +- self.parallel = True + + def add(self, ext): + self.extensions.append(ext)