----------------------------------------------- Modules/Setup.dist is newer than Modules/Setup; check to make sure you have all the updates you need in your Modules/Setup file. Usually, copying Modules/Setup.dist to Modules/Setup will work. ----------------------------------------------- LD_LIBRARY_PATH=/home/shlomif/Download/unpack/prog/python/cpython ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not import runpy module Traceback (most recent call last): File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/runpy.py", line 14, in import importlib.machinery # importlib first so we can test #15386 via -m File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/importlib/__init__.py", line 57, in import types File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/types.py", line 175, in import functools as _functools File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/functools.py", line 21, in from collections import namedtuple File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/collections/__init__.py", line 32, in from reprlib import recursive_repr as _recursive_repr File "/home/shlomif/Download/unpack/prog/python/cpython/Lib/reprlib.py", line 7, in from _thread import get_ident ModuleNotFoundError: No module named '_thread' generate-posix-vars failed Makefile:561: recipe for target 'pybuilddir.txt' failed make: *** [pybuilddir.txt] Error 1